Skip to content

Commit

Permalink
Merge pull request kubernetes#5355 from yujuhong/fixspechost
Browse files Browse the repository at this point in the history
Copy Spec.Host to Status.Host on pod creation
  • Loading branch information
bgrant0607 committed Mar 12, 2015
2 parents 91131a6 + 533299b commit 3cbe9aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/registry/pod/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
Expand Down

0 comments on commit 3cbe9aa

Please sign in to comment.