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 {
 | 
					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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user