mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	PodStatus Message needs to be round-trippable
This commit is contained in:
		@@ -469,6 +469,9 @@ type PodSpec struct {
 | 
			
		||||
type PodStatus struct {
 | 
			
		||||
	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
 | 
			
		||||
	// assignment has been done.
 | 
			
		||||
	Host   string `json:"host,omitempty"`
 | 
			
		||||
 
 | 
			
		||||
@@ -176,6 +176,7 @@ func init() {
 | 
			
		||||
			if err := s.Convert(&in.Info, &out.Info, 0); err != nil {
 | 
			
		||||
				return err
 | 
			
		||||
			}
 | 
			
		||||
			out.Message = in.Message
 | 
			
		||||
			out.Host = in.Host
 | 
			
		||||
			out.HostIP = in.HostIP
 | 
			
		||||
			out.PodIP = in.PodIP
 | 
			
		||||
@@ -189,6 +190,7 @@ func init() {
 | 
			
		||||
				return err
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			out.Message = in.Message
 | 
			
		||||
			out.Host = in.Host
 | 
			
		||||
			out.HostIP = in.HostIP
 | 
			
		||||
			out.PodIP = in.PodIP
 | 
			
		||||
 
 | 
			
		||||
@@ -295,6 +295,7 @@ func init() {
 | 
			
		||||
			if err := s.Convert(&in.Info, &out.Info, 0); err != nil {
 | 
			
		||||
				return err
 | 
			
		||||
			}
 | 
			
		||||
			out.Message = in.Message
 | 
			
		||||
			out.Host = in.Host
 | 
			
		||||
			out.HostIP = in.HostIP
 | 
			
		||||
			out.PodIP = in.PodIP
 | 
			
		||||
@@ -307,6 +308,7 @@ func init() {
 | 
			
		||||
			if err := s.Convert(&in.Info, &out.Info, 0); err != nil {
 | 
			
		||||
				return err
 | 
			
		||||
			}
 | 
			
		||||
			out.Message = in.Message
 | 
			
		||||
			out.Host = in.Host
 | 
			
		||||
			out.HostIP = in.HostIP
 | 
			
		||||
			out.PodIP = in.PodIP
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user