Merge pull request #5555 from fgrzadkowski/sync_pod_status
Periodically update pod status from kubelet.
This commit is contained in:
@@ -691,6 +691,7 @@ func ValidatePodStatusUpdate(newPod, oldPod *api.Pod) errs.ValidationErrorList {
|
||||
allErrs = append(allErrs, errs.NewFieldInvalid("status.host", newPod.Status.Host, "pod host cannot be changed directly"))
|
||||
}
|
||||
|
||||
// For status update we ignore changes to pod spec.
|
||||
newPod.Spec = oldPod.Spec
|
||||
|
||||
return allErrs
|
||||
|
Reference in New Issue
Block a user