mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Remove pod mutation for volumes annotated with supplemental groups
This commit is contained in:
parent
7edb84c2eb
commit
a573a0eda3
@ -1414,7 +1414,8 @@ func (kl *Kubelet) GenerateRunContainerOptions(pod *api.Pod, container *api.Cont
|
||||
return nil, err
|
||||
}
|
||||
opts.Hostname = hostname
|
||||
volumes := kl.volumeManager.GetVolumesForPodAndAppendSupplementalGroups(pod)
|
||||
podName := volumehelper.GetUniquePodName(pod)
|
||||
volumes := kl.volumeManager.GetMountedVolumesForPod(podName)
|
||||
|
||||
opts.PortMappings = makePortMappings(container)
|
||||
// Docker does not relabel volumes if the container is running
|
||||
|
Loading…
Reference in New Issue
Block a user