Remove pod mutation for volumes annotated with supplemental groups
This commit is contained in:
@@ -1414,7 +1414,8 @@ func (kl *Kubelet) GenerateRunContainerOptions(pod *api.Pod, container *api.Cont
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
opts.Hostname = hostname
|
opts.Hostname = hostname
|
||||||
volumes := kl.volumeManager.GetVolumesForPodAndAppendSupplementalGroups(pod)
|
podName := volumehelper.GetUniquePodName(pod)
|
||||||
|
volumes := kl.volumeManager.GetMountedVolumesForPod(podName)
|
||||||
|
|
||||||
opts.PortMappings = makePortMappings(container)
|
opts.PortMappings = makePortMappings(container)
|
||||||
// Docker does not relabel volumes if the container is running
|
// Docker does not relabel volumes if the container is running
|
||||||
|
Reference in New Issue
Block a user