Commit 3cbe9aad authored by Brian Grant's avatar Brian Grant

Merge pull request #5355 from yujuhong/fixspechost

Copy Spec.Host to Status.Host on pod creation
parents 91131a65 533299bf
...@@ -51,6 +51,7 @@ func (podStrategy) NamespaceScoped() bool { ...@@ -51,6 +51,7 @@ func (podStrategy) NamespaceScoped() bool {
func (podStrategy) ResetBeforeCreate(obj runtime.Object) { func (podStrategy) ResetBeforeCreate(obj runtime.Object) {
pod := obj.(*api.Pod) pod := obj.(*api.Pod)
pod.Status = api.PodStatus{ pod.Status = api.PodStatus{
Host: pod.Spec.Host,
Phase: api.PodPending, Phase: api.PodPending,
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment