ceph-csi/internal
Niels de Vos 24f92b2255 util: NewK8sClient() should not panic on non-Kubernetes clusters
When NewK8sClient() detects and error, it used to call FatalLogMsg()
which causes a panic. There are additional features that can be used on
Kubernetes clusters, but these are not a requirement for most
functionalities of the driver.

Instead of causing a panic, returning an error should suffice. This
allows using the driver on non-Kubernetes clusters again.

Fixes: #2452
Signed-off-by: Niels de Vos <ndevos@redhat.com>
(cherry picked from commit 60c2afbcca)
2021-09-02 16:50:40 +00:00
..
cephfs cephfs: support selinux mount options 2021-08-05 08:37:52 +00:00
controller rbd: refractor RegenerateJournal() to take in volumeAttributes 2021-08-11 09:50:10 +00:00
csi-common cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
journal cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
liveness cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
rbd util: NewK8sClient() should not panic on non-Kubernetes clusters 2021-09-02 16:50:40 +00:00
util util: NewK8sClient() should not panic on non-Kubernetes clusters 2021-09-02 16:50:40 +00:00