Set default status to pending for pods from non-apiserver sources

This commit is contained in:
Yu-Ju Hong
2016-01-19 17:37:41 -08:00
parent d351a0f626
commit dc5b35a570
3 changed files with 27 additions and 0 deletions

View File

@@ -70,6 +70,9 @@ func applyDefaults(pod *api.Pod, source string, isFile bool, nodeName string) er
}
// The generated UID is the hash of the file.
pod.Annotations[kubetypes.ConfigHashAnnotationKey] = string(pod.UID)
// Set the default status to pending.
pod.Status.Phase = api.PodPending
return nil
}