Commit 533299bf authored by Yu-Ju Hong's avatar Yu-Ju Hong

Copy Spec.Host to Status.Host on pod creation

parent 996f9e67
......@@ -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,
}
}
......
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