diff --git a/pkg/api/types.go b/pkg/api/types.go index fda7f7a9430..beaa6217aea 100644 --- a/pkg/api/types.go +++ b/pkg/api/types.go @@ -832,7 +832,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 ac6969e189d..aa634dc7d49 100644 --- a/pkg/api/v1/types.go +++ b/pkg/api/v1/types.go @@ -833,7 +833,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"`