From 2475eb06cb2197a382dec6fd0dcb98e6304dcf8f Mon Sep 17 00:00:00 2001 From: Clayton Coleman Date: Thu, 23 Oct 2014 16:54:47 -0400 Subject: [PATCH] Remove use of embedded TypeMeta accessor --- pkg/api/validation/validation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/validation/validation.go b/pkg/api/validation/validation.go index bc3a645b82a..ec16c25a6ed 100644 --- a/pkg/api/validation/validation.go +++ b/pkg/api/validation/validation.go @@ -356,7 +356,7 @@ func ValidatePodUpdate(newPod, oldPod *api.Pod) errs.ErrorList { } pod := *newPod 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 var newContainers []api.Container for ix, container := range pod.DesiredState.Manifest.Containers {