diff --git a/pkg/api/types.go b/pkg/api/types.go index 44c408cdfd7..e8dcb75130f 100644 --- a/pkg/api/types.go +++ b/pkg/api/types.go @@ -828,7 +828,7 @@ type PodSpec struct { // state of a system. type PodStatus struct { Phase PodPhase `json:"phase,omitempty"` - Conditions []PodCondition `json:"Condition,omitempty"` + Conditions []PodCondition `json:"conditions,omitempty"` // A human readable message indicating details about why the pod is in this state. Message string `json:"message,omitempty"` diff --git a/pkg/api/v1/types.go b/pkg/api/v1/types.go index 2ee4ea8726f..cb0c86723ba 100644 --- a/pkg/api/v1/types.go +++ b/pkg/api/v1/types.go @@ -830,7 +830,7 @@ type PodSpec struct { // state of a system. type PodStatus struct { Phase PodPhase `json:"phase,omitempty" description:"current condition of the pod."` - Conditions []PodCondition `json:"Condition,omitempty" description:"current service state of pod" patchStrategy:"merge" patchMergeKey:"type"` + Conditions []PodCondition `json:"conditions,omitempty" description:"current service state of pod" patchStrategy:"merge" patchMergeKey:"type"` // A human readable message indicating details about why the pod is in this state. Message string `json:"message,omitempty" description:"human readable message indicating details about why the pod is in this condition"`