Merge pull request #5355 from yujuhong/fixspechost
Copy Spec.Host to Status.Host on pod creation
This commit is contained in:
@@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user