mirror of https://github.com/k3s-io/k3s
Merge pull request #17581 from swagiaal/correct-management-predicates
Auto commit by PR queue botpull/6/head
commit
355ac2c58d
|
@ -1206,7 +1206,7 @@ func makeMounts(pod *api.Pod, podDir string, container *api.Container, podVolume
|
||||||
// If the volume supports SELinux and it has not been
|
// If the volume supports SELinux and it has not been
|
||||||
// relabeled already and it is not a read-only volume,
|
// relabeled already and it is not a read-only volume,
|
||||||
// relabel it and mark it as labeled
|
// relabel it and mark it as labeled
|
||||||
if vol.Builder.GetAttributes().SupportsSELinux && !vol.SELinuxLabeled && !vol.Builder.GetAttributes().Managed {
|
if vol.Builder.GetAttributes().Managed && vol.Builder.GetAttributes().SupportsSELinux && !vol.SELinuxLabeled {
|
||||||
vol.SELinuxLabeled = true
|
vol.SELinuxLabeled = true
|
||||||
relabelVolume = true
|
relabelVolume = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue