mirror of https://github.com/k3s-io/k3s
Copy Spec.Host to Status.Host on pod creation
parent
996f9e6710
commit
533299bf0a
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue