mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 13:55:41 +00:00
Remove use of embedded TypeMeta accessor
This commit is contained in:
parent
0f011a055f
commit
2475eb06cb
@ -356,7 +356,7 @@ func ValidatePodUpdate(newPod, oldPod *api.Pod) errs.ErrorList {
|
|||||||
}
|
}
|
||||||
pod := *newPod
|
pod := *newPod
|
||||||
pod.Labels = oldPod.Labels
|
pod.Labels = oldPod.Labels
|
||||||
pod.TypeMeta.ResourceVersion = oldPod.TypeMeta.ResourceVersion
|
pod.ResourceVersion = oldPod.ResourceVersion
|
||||||
// Tricky, we need to copy the container list so that we don't overwrite the update
|
// Tricky, we need to copy the container list so that we don't overwrite the update
|
||||||
var newContainers []api.Container
|
var newContainers []api.Container
|
||||||
for ix, container := range pod.DesiredState.Manifest.Containers {
|
for ix, container := range pod.DesiredState.Manifest.Containers {
|
||||||
|
Loading…
Reference in New Issue
Block a user