Rename SupportsSELinux to SELinuxRelabel

The field in fact says that the container runtime should relabel a volume
when running a container with it, it does not say that the volume supports
SELinux. For example, NFS can support SELinux, but we don't want NFS
volumes relabeled, because they can be shared among several Pods.
This commit is contained in:
Jan Safranek
2022-02-11 10:45:29 +01:00
parent a06e272124
commit 525b8e5cd6
29 changed files with 94 additions and 93 deletions

View File

@@ -161,9 +161,9 @@ var _ volume.Mounter = &gitRepoVolumeMounter{}
func (b *gitRepoVolumeMounter) GetAttributes() volume.Attributes {
return volume.Attributes{
ReadOnly: false,
Managed: true,
SupportsSELinux: true, // xattr change should be okay, TODO: double check
ReadOnly: false,
Managed: true,
SELinuxRelabel: true, // xattr change should be okay, TODO: double check
}
}