kubernetes/pkg/controller/volume
Jan Safranek 2050d6fc69 selinux: add a new SELinux translator to the controller
A real SELinuxOptionsToFileLabel function needs access to host's
/etc/selinux to read the defaults. This is not possible in
kube-controller-manager that often runs in a container and does not have
access to /etc on the host. Even if it had, it could run on a different
Linux distro than worker nodes.

Therefore implement a custom SELinuxOptionsToFileLabel that does not
default fields in SELinuxOptions and uses just fields provided by the Pod.

Since the controller cannot default empty SELinux label components,
treat them as incomparable.
Example: "system_u:system_r:container_t:s0:c1,c2" *does not* conflict with ":::s0:c1,c2",
because the node that will run such a Pod may expand "":::s0:c1,c2" to "system_u:system_r:container_t:s0:c1,c2".
However, "system_u:system_r:container_t:s0:c1,c2" *does* conflict with ":::s0:c98,c99".
2025-02-17 13:32:10 +01:00
..
attachdetach remove import doc comments 2024-12-02 16:59:34 +01:00
common generic ephemeral volume: graduation to GA 2021-10-11 20:54:20 +02:00
ephemeral remove import doc comments 2024-12-02 16:59:34 +01:00
events hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
expand Fix Go vet errors for master golang 2024-09-20 12:36:38 +05:30
persistentvolume Linter to ensure go-cmp/cmp is used ONLY in tests 2025-01-24 20:49:14 -05:00
protectionutil controller-manager adds a new controller named volumeattributesclass-protection-controller which adds/removes finalizer to VAC for protection 2024-08-30 15:00:46 +08:00
pvcprotection update error comment 2024-08-26 16:47:39 +00:00
pvprotection Use the generic/typed workqueue throughout 2024-05-04 14:33:12 -04:00
selinuxwarning selinux: add a new SELinux translator to the controller 2025-02-17 13:32:10 +01:00
vacprotection controller-manager adds a new controller named volumeattributesclass-protection-controller which adds/removes finalizer to VAC for protection 2024-08-30 15:00:46 +08:00
OWNERS add sig/storage label for pkg/controller/volume package PR 2022-11-10 09:57:36 +08:00