kubernetes/pkg/kubelet/volumemanager
Jan Safranek d37808faae Report error on a pod startup on SELinux mismatch
When a volume is already mounted with an unexpected SELinux label,
kubelet must unmount it first and then mount it back with the expected one.
Report an error to user, just in case the unmount takes too long.

In therory, this error should not happen too often, because two Pods with
different SELinux label will not enter Desired State of World, see
dsw.AddPodToVolume. It can happen when DSW and ASW SELinux labels only when
a volume has been deleted from DSW (= Pod was deleted) or a volume was
reconstructed after kubelet restart. In both cases, volume manager should
unmount the volume quickly.
2022-10-31 13:59:23 +01:00
..
cache Report error on a pod startup on SELinux mismatch 2022-10-31 13:59:23 +01:00
metrics Add interface for SELinuxOptionsToFileLabel 2022-08-04 10:51:51 +02:00
populator Add unit tests for DesiredStateOfWorldPopulator 2022-08-04 10:51:59 +02:00
reconciler Report error on a pod startup on SELinux mismatch 2022-10-31 13:59:23 +01:00
OWNERS Update sig-storage owners file 2022-03-14 18:57:52 +00:00
volume_manager_fake.go Keep pod worker running until pod is truly complete 2021-07-06 15:55:22 -04:00
volume_manager_test.go Upgrade CSIMigrationGCE feature gate to GA 2022-08-02 09:14:27 -07:00
volume_manager.go Add interface for SELinuxOptionsToFileLabel 2022-08-04 10:51:51 +02:00