Copy Spec.Host to Status.Host on pod creation

pull/6/head
Yu-Ju Hong 2015-03-11 21:36:41 -07:00
parent 996f9e6710
commit 533299bf0a
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ func (podStrategy) NamespaceScoped() bool {
func (podStrategy) ResetBeforeCreate(obj runtime.Object) {
pod := obj.(*api.Pod)
pod.Status = api.PodStatus{
Host: pod.Spec.Host,
Phase: api.PodPending,
}
}