mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
Add a human readable message to pod state.
This commit is contained in:
parent
4a21dbbb0a
commit
3fdbb10255
@ -421,9 +421,11 @@ type RestartPolicy struct {
|
|||||||
type PodState struct {
|
type PodState struct {
|
||||||
Manifest ContainerManifest `json:"manifest,omitempty" yaml:"manifest,omitempty"`
|
Manifest ContainerManifest `json:"manifest,omitempty" yaml:"manifest,omitempty"`
|
||||||
Status PodCondition `json:"status,omitempty" yaml:"status,omitempty"`
|
Status PodCondition `json:"status,omitempty" yaml:"status,omitempty"`
|
||||||
Host string `json:"host,omitempty" yaml:"host,omitempty"`
|
// A human readable message indicating details about why the pod is in this state.
|
||||||
HostIP string `json:"hostIP,omitempty" yaml:"hostIP,omitempty"`
|
Message string `json:"message,omitempty" yaml:"message,omitempty"`
|
||||||
PodIP string `json:"podIP,omitempty" yaml:"podIP,omitempty"`
|
Host string `json:"host,omitempty" yaml:"host,omitempty"`
|
||||||
|
HostIP string `json:"hostIP,omitempty" yaml:"hostIP,omitempty"`
|
||||||
|
PodIP string `json:"podIP,omitempty" yaml:"podIP,omitempty"`
|
||||||
|
|
||||||
// The key of this map is the *name* of the container within the manifest; it has one
|
// The key of this map is the *name* of the container within the manifest; it has one
|
||||||
// entry per container in the manifest. The value of this map is currently the output
|
// entry per container in the manifest. The value of this map is currently the output
|
||||||
|
@ -385,9 +385,11 @@ type RestartPolicy struct {
|
|||||||
type PodState struct {
|
type PodState struct {
|
||||||
Manifest ContainerManifest `json:"manifest,omitempty" yaml:"manifest,omitempty"`
|
Manifest ContainerManifest `json:"manifest,omitempty" yaml:"manifest,omitempty"`
|
||||||
Status PodStatus `json:"status,omitempty" yaml:"status,omitempty"`
|
Status PodStatus `json:"status,omitempty" yaml:"status,omitempty"`
|
||||||
Host string `json:"host,omitempty" yaml:"host,omitempty"`
|
// A human readable message indicating details about why the pod is in this state.
|
||||||
HostIP string `json:"hostIP,omitempty" yaml:"hostIP,omitempty"`
|
Message string `json:"message,omitempty" yaml:"message,omitempty"`
|
||||||
PodIP string `json:"podIP,omitempty" yaml:"podIP,omitempty"`
|
Host string `json:"host,omitempty" yaml:"host,omitempty"`
|
||||||
|
HostIP string `json:"hostIP,omitempty" yaml:"hostIP,omitempty"`
|
||||||
|
PodIP string `json:"podIP,omitempty" yaml:"podIP,omitempty"`
|
||||||
|
|
||||||
// The key of this map is the *name* of the container within the manifest; it has one
|
// The key of this map is the *name* of the container within the manifest; it has one
|
||||||
// entry per container in the manifest. The value of this map is currently the output
|
// entry per container in the manifest. The value of this map is currently the output
|
||||||
|
@ -350,9 +350,11 @@ type RestartPolicy struct {
|
|||||||
type PodState struct {
|
type PodState struct {
|
||||||
Manifest ContainerManifest `json:"manifest,omitempty" yaml:"manifest,omitempty"`
|
Manifest ContainerManifest `json:"manifest,omitempty" yaml:"manifest,omitempty"`
|
||||||
Status PodStatus `json:"status,omitempty" yaml:"status,omitempty"`
|
Status PodStatus `json:"status,omitempty" yaml:"status,omitempty"`
|
||||||
Host string `json:"host,omitempty" yaml:"host,omitempty"`
|
// A human readable message indicating details about why the pod is in this state.
|
||||||
HostIP string `json:"hostIP,omitempty" yaml:"hostIP,omitempty"`
|
Message string `json:"message,omitempty" yaml:"message,omitempty"`
|
||||||
PodIP string `json:"podIP,omitempty" yaml:"podIP,omitempty"`
|
Host string `json:"host,omitempty" yaml:"host,omitempty"`
|
||||||
|
HostIP string `json:"hostIP,omitempty" yaml:"hostIP,omitempty"`
|
||||||
|
PodIP string `json:"podIP,omitempty" yaml:"podIP,omitempty"`
|
||||||
|
|
||||||
// The key of this map is the *name* of the container within the manifest; it has one
|
// The key of this map is the *name* of the container within the manifest; it has one
|
||||||
// entry per container in the manifest. The value of this map is currently the output
|
// entry per container in the manifest. The value of this map is currently the output
|
||||||
|
@ -456,6 +456,8 @@ type PodSpec struct {
|
|||||||
// state of a system.
|
// state of a system.
|
||||||
type PodStatus struct {
|
type PodStatus struct {
|
||||||
Condition PodCondition `json:"condition,omitempty" yaml:"condition,omitempty"`
|
Condition PodCondition `json:"condition,omitempty" yaml:"condition,omitempty"`
|
||||||
|
// A human readable message indicating details about why the pod is in this state.
|
||||||
|
Message string `json:"message,omitempty" yaml:"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.
|
||||||
|
Loading…
Reference in New Issue
Block a user