mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-12-07 18:06:21 +00:00
Add SELinuxMount feature gate
The feature gate enables mounting with -o context=XYZ mount option for all volume types, not only ReadWriteOncePod. All SELinux label tracking & error reporting infrastructure is already in place from SELinuxMountReadWriteOncePod feature gate. This is just a trivial extension to all access modes.
This commit is contained in:
@@ -449,6 +449,9 @@ type VolumeToMount struct {
|
||||
DesiredPersistentVolumeSize resource.Quantity
|
||||
|
||||
// SELinux label that should be used to mount.
|
||||
// The label is set when:
|
||||
// * SELinuxMountReadWriteOncePod feature gate is enabled and the volume is RWOP and kubelet knows the SELinux label.
|
||||
// * Or, SELinuxMount feature gate is enabled and kubelet knows the SELinux label.
|
||||
SELinuxLabel string
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user