Merge pull request #5555 from fgrzadkowski/sync_pod_status

Periodically update pod status from kubelet.
This commit is contained in:
Victor Marmol
2015-03-18 10:14:07 -07:00
12 changed files with 95 additions and 47 deletions

View File

@@ -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