mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
PodStatus Message needs to be round-trippable
This commit is contained in:
parent
904d0d46c3
commit
eb906f2993
@ -469,6 +469,9 @@ type PodSpec struct {
|
|||||||
type PodStatus struct {
|
type PodStatus struct {
|
||||||
Phase PodPhase `json:"phase,omitempty"`
|
Phase PodPhase `json:"phase,omitempty"`
|
||||||
|
|
||||||
|
// A human readable message indicating details about why the pod is in this state.
|
||||||
|
Message string `json:"message,omitempty"`
|
||||||
|
|
||||||
// Host is the name of the node that this Pod is currently bound to, or empty if no
|
// Host is the name of the node that this Pod is currently bound to, or empty if no
|
||||||
// assignment has been done.
|
// assignment has been done.
|
||||||
Host string `json:"host,omitempty"`
|
Host string `json:"host,omitempty"`
|
||||||
|
@ -176,6 +176,7 @@ func init() {
|
|||||||
if err := s.Convert(&in.Info, &out.Info, 0); err != nil {
|
if err := s.Convert(&in.Info, &out.Info, 0); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
out.Message = in.Message
|
||||||
out.Host = in.Host
|
out.Host = in.Host
|
||||||
out.HostIP = in.HostIP
|
out.HostIP = in.HostIP
|
||||||
out.PodIP = in.PodIP
|
out.PodIP = in.PodIP
|
||||||
@ -189,6 +190,7 @@ func init() {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
out.Message = in.Message
|
||||||
out.Host = in.Host
|
out.Host = in.Host
|
||||||
out.HostIP = in.HostIP
|
out.HostIP = in.HostIP
|
||||||
out.PodIP = in.PodIP
|
out.PodIP = in.PodIP
|
||||||
|
@ -295,6 +295,7 @@ func init() {
|
|||||||
if err := s.Convert(&in.Info, &out.Info, 0); err != nil {
|
if err := s.Convert(&in.Info, &out.Info, 0); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
out.Message = in.Message
|
||||||
out.Host = in.Host
|
out.Host = in.Host
|
||||||
out.HostIP = in.HostIP
|
out.HostIP = in.HostIP
|
||||||
out.PodIP = in.PodIP
|
out.PodIP = in.PodIP
|
||||||
@ -307,6 +308,7 @@ func init() {
|
|||||||
if err := s.Convert(&in.Info, &out.Info, 0); err != nil {
|
if err := s.Convert(&in.Info, &out.Info, 0); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
out.Message = in.Message
|
||||||
out.Host = in.Host
|
out.Host = in.Host
|
||||||
out.HostIP = in.HostIP
|
out.HostIP = in.HostIP
|
||||||
out.PodIP = in.PodIP
|
out.PodIP = in.PodIP
|
||||||
|
Loading…
Reference in New Issue
Block a user