mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
Add SELinux mount option to NewMounter() and MountDevice()
Let volume plugins decide if they want to mount volumes with "-o context=XYZ" or let the container runtime relabel the volume on container startup. Using NewMounter, as it's the call where a volume plugin gets the other MountOptions.
This commit is contained in:
parent
f2fd9c1c16
commit
f99cf5180e
@ -129,6 +129,7 @@ type MounterArgs struct {
|
||||
FsGroup *int64
|
||||
FSGroupChangePolicy *v1.PodFSGroupChangePolicy
|
||||
DesiredSize *resource.Quantity
|
||||
SELinuxLabel string
|
||||
}
|
||||
|
||||
// Mounter interface provides methods to set up/mount the volume.
|
||||
@ -262,7 +263,8 @@ type Attacher interface {
|
||||
|
||||
// DeviceMounterArgs provides auxiliary, optional arguments to DeviceMounter.
|
||||
type DeviceMounterArgs struct {
|
||||
FsGroup *int64
|
||||
FsGroup *int64
|
||||
SELinuxLabel string
|
||||
}
|
||||
|
||||
// DeviceMounter can mount a block volume to a global path.
|
||||
|
Loading…
Reference in New Issue
Block a user