mirror of https://github.com/k3s-io/k3s
Inconsistency in api terminology of pod conditions
While nodes returns the "conditions" key in api requests, pods returns "Condition". Also, from pods states docs it seems that the right terminology should be "conditions". Fixes #8038pull/6/head
parent
962f10ee58
commit
25ada0e118
|
@ -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"`
|
||||
|
||||
|
|
|
@ -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"`
|
||||
|
||||
|
|
Loading…
Reference in New Issue