mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Copy Spec.Host to Status.Host on pod creation
This commit is contained in:
parent
996f9e6710
commit
533299bf0a
@ -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,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user