Merge pull request #5355 from yujuhong/fixspechost

Copy Spec.Host to Status.Host on pod creation
This commit is contained in:
Brian Grant 2015-03-12 07:25:29 -07:00
commit 3cbe9aadff

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,
}
}