mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +00:00
Fix "validate-cluster.sh" to use "kubectl get componentstatus".
This commit is contained in:
@@ -1682,8 +1682,8 @@ const (
|
||||
)
|
||||
|
||||
type ComponentCondition struct {
|
||||
Type ComponentConditionType `json:"type"`
|
||||
Status ConditionStatus `json:"status"`
|
||||
Type ComponentConditionType `json:"type" description:"type of component condition, currently only Healthy"`
|
||||
Status ConditionStatus `json:"status" description:"current status of this component condition"`
|
||||
Message string `json:"message,omitempty" description:"health check message received from the component"`
|
||||
Error string `json:"error,omitempty" description:"error code from health check attempt (if any)"`
|
||||
}
|
||||
@@ -1694,12 +1694,12 @@ type ComponentStatus struct {
|
||||
ObjectMeta `json:"metadata,omitempty"`
|
||||
|
||||
Name string `json:"name,omitempty" description:"name of the component"`
|
||||
Conditions []ComponentCondition `json:"conditions,omitempty"`
|
||||
Conditions []ComponentCondition `json:"conditions,omitempty" description:"Conditions is a list of ComponentCondition objects"`
|
||||
}
|
||||
|
||||
type ComponentStatusList struct {
|
||||
TypeMeta `json:",inline"`
|
||||
ListMeta `json:"metadata,omitempty"`
|
||||
|
||||
Items []ComponentStatus `json:"items" description:"items is a list of component status objects"`
|
||||
Items []ComponentStatus `json:"items" description:"items is a list of ComponentStatus objects"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user