mirror of https://github.com/k3s-io/k3s
Merge pull request #27639 from pmorie/goodbye-pod-mutation
Automatic merge from submit-queue Remove pod mutation for volumes annotated with supplemental groups Removes the pod mutation added in #20490 -- partially resolves #27197 from the standpoint of making the feature inactive in 1.3. Our plan is to make this work correctly in 1.4. @kubernetes/sig-storagepull/6/head
commit
a8fecd0cc6
|
@ -1422,7 +1422,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