ceph-csi/internal/rbd
Niels de Vos 437d90c84d rbd: do not start the healer for NBD on non-Kubernetes platforms
When running on Docker Swarm, the RBD-healer fails with an error like:

> healer had failures, err failed to get cluster config: unable to load
> in-cluster configuration, KUBERNETES_SERVICE_HOST and
> KUBERNETES_SERVICE_PORT must be defined

Before starting the healer, check if we're running on Kubernetes, so
that non-Kubernetes platforms do not get confusing warnings.

Updates: #3769
Signed-off-by: Niels de Vos <ndevos@ibm.com>
2025-04-02 13:59:11 +00:00
..
driver rbd: do not start the healer for NBD on non-Kubernetes platforms 2025-04-02 13:59:11 +00:00
errors cleanup: move internal/rbd/errors.go to internal/rbd/errors pacakge 2025-03-27 09:59:12 +00:00
features rbd: add feature check to see if GroupSnapGetInfo is available 2024-10-10 15:45:47 +00:00
group rbd: cleanup volume info from group even if image is not part of group 2025-04-01 12:34:03 +00:00
types rbd: improve the description for GetID() and GetName() interfaces 2025-03-27 14:09:44 +00:00
clone.go cleanup: move internal/rbd/errors.go to internal/rbd/errors pacakge 2025-03-27 09:59:12 +00:00
controllerserver_test.go rbd: add validation to ToCSI() for rbdVolume and rbdSnapshot 2025-02-20 10:14:29 +00:00
controllerserver.go cleanup: move internal/rbd/errors.go to internal/rbd/errors pacakge 2025-03-27 09:59:12 +00:00
diskusage.go cleanup: move internal/rbd/errors.go to internal/rbd/errors pacakge 2025-03-27 09:59:12 +00:00
encryption_test.go util: move EncryptionType(s) to pkg/util/crypto 2025-03-07 16:05:04 +00:00
encryption.go util: move EncryptionType(s) to pkg/util/crypto 2025-03-07 16:05:04 +00:00
globals.go util: add CSIDriver.GetInstanceID() 2024-08-05 17:04:52 +00:00
group_controllerserver.go rbd: use the existing VolumeGroup if contents are matching 2025-03-27 14:09:44 +00:00
group.go rbd: introduce functions for comparing Volumes in a VolumeGroup 2025-03-27 14:09:44 +00:00
identityserver.go rbd: expose the GroupControllerService 2024-11-06 11:37:44 +00:00
manager_test.go rbd: add MakeVolumeGroupID() utility function 2025-03-27 14:09:44 +00:00
manager.go rbd: introduce functions for comparing Volumes in a VolumeGroup 2025-03-27 14:09:44 +00:00
migration_test.go build: address 'copyloopvar' linter warning 2024-04-29 14:36:48 +00:00
migration.go cleanup: move internal/rbd/errors.go to internal/rbd/errors pacakge 2025-03-27 09:59:12 +00:00
mirror.go cleanup: move internal/rbd/errors.go to internal/rbd/errors pacakge 2025-03-27 09:59:12 +00:00
nodeserver_test.go ci: Use temporary directory for unit tests 2024-05-27 05:57:27 +00:00
nodeserver.go cleanup: move internal/rbd/errors.go to internal/rbd/errors pacakge 2025-03-27 09:59:12 +00:00
qos_test.go rbd: support QoS based on capacity for rbd volume 2025-02-17 18:25:33 +00:00
qos.go rbd: support QoS based on capacity for rbd volume 2025-02-17 18:25:33 +00:00
rbd_attach_test.go build: address 'copyloopvar' linter warning 2024-04-29 14:36:48 +00:00
rbd_attach.go util: move kernel version functions to pkg/util/kernel 2025-03-07 16:05:04 +00:00
rbd_healer.go rbd: add a check for CSI pv 2024-08-27 17:08:44 +00:00
rbd_journal.go cleanup: move internal/rbd/errors.go to internal/rbd/errors pacakge 2025-03-27 09:59:12 +00:00
rbd_util_test.go cleanup: move internal/rbd/errors.go to internal/rbd/errors pacakge 2025-03-27 09:59:12 +00:00
rbd_util.go cleanup: move internal/rbd/errors.go to internal/rbd/errors pacakge 2025-03-27 09:59:12 +00:00
replication.go cleanup: move internal/rbd/errors.go to internal/rbd/errors pacakge 2025-03-27 09:59:12 +00:00
snapshot_test.go rbd: add validation to ToCSI() for rbdVolume and rbdSnapshot 2025-02-20 10:14:29 +00:00
snapshot.go cleanup: move internal/rbd/errors.go to internal/rbd/errors pacakge 2025-03-27 09:59:12 +00:00