mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
Merge pull request #4546 from mikedanese/hook-fix
add descriptions to PodCondition struct tags
This commit is contained in:
commit
079e70e210
@ -445,8 +445,8 @@ const (
|
|||||||
|
|
||||||
// TODO: add LastTransitionTime, Reason, Message to match NodeCondition api.
|
// TODO: add LastTransitionTime, Reason, Message to match NodeCondition api.
|
||||||
type PodCondition struct {
|
type PodCondition struct {
|
||||||
Kind PodConditionKind `json:"kind"`
|
Kind PodConditionKind `json:"kind" description:"kind of the condition, currently only Ready"`
|
||||||
Status ConditionStatus `json:"status"`
|
Status ConditionStatus `json:"status" description:"status of the condition, one of Full, None, Unknown"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// PodInfo contains one entry for every container with available info.
|
// PodInfo contains one entry for every container with available info.
|
||||||
@ -644,8 +644,8 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type NodeCondition struct {
|
type NodeCondition struct {
|
||||||
Kind NodeConditionKind `json:"kind" description:"kind of the condition, one of reachable, ready"`
|
Kind NodeConditionKind `json:"kind" description:"kind of the condition, one of Reachable, Ready"`
|
||||||
Status ConditionStatus `json:"status" description:"status of the condition, one of full, none, unknown"`
|
Status ConditionStatus `json:"status" description:"status of the condition, one of Full, None, Unknown"`
|
||||||
LastProbeTime util.Time `json:"lastProbeTime,omitempty" description:"last time the condition was probed"`
|
LastProbeTime util.Time `json:"lastProbeTime,omitempty" description:"last time the condition was probed"`
|
||||||
LastTransitionTime util.Time `json:"lastTransitionTime,omitempty" description:"last time the condition transit from one status to another"`
|
LastTransitionTime util.Time `json:"lastTransitionTime,omitempty" description:"last time the condition transit from one status to another"`
|
||||||
Reason string `json:"reason,omitempty" description:"(brief) reason for the condition's last transition"`
|
Reason string `json:"reason,omitempty" description:"(brief) reason for the condition's last transition"`
|
||||||
|
@ -409,8 +409,8 @@ const (
|
|||||||
|
|
||||||
// TODO: add LastTransitionTime, Reason, Message to match NodeCondition api.
|
// TODO: add LastTransitionTime, Reason, Message to match NodeCondition api.
|
||||||
type PodCondition struct {
|
type PodCondition struct {
|
||||||
Kind PodConditionKind `json:"kind"`
|
Kind PodConditionKind `json:"kind" description:"kind of the condition, currently only Ready"`
|
||||||
Status ConditionStatus `json:"status"`
|
Status ConditionStatus `json:"status" description:"status of the condition, one of Full, None, Unknown"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// PodInfo contains one entry for every container with available info.
|
// PodInfo contains one entry for every container with available info.
|
||||||
@ -608,8 +608,8 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type NodeCondition struct {
|
type NodeCondition struct {
|
||||||
Kind NodeConditionKind `json:"kind" description:"kind of the condition, one of reachable, ready"`
|
Kind NodeConditionKind `json:"kind" description:"kind of the condition, one of Reachable, Ready"`
|
||||||
Status ConditionStatus `json:"status" description:"status of the condition, one of full, none, unknown"`
|
Status ConditionStatus `json:"status" description:"status of the condition, one of Full, None, Unknown"`
|
||||||
LastProbeTime util.Time `json:"lastProbeTime,omitempty" description:"last time the condition was probed"`
|
LastProbeTime util.Time `json:"lastProbeTime,omitempty" description:"last time the condition was probed"`
|
||||||
LastTransitionTime util.Time `json:"lastTransitionTime,omitempty" description:"last time the condition transit from one status to another"`
|
LastTransitionTime util.Time `json:"lastTransitionTime,omitempty" description:"last time the condition transit from one status to another"`
|
||||||
Reason string `json:"reason,omitempty" description:"(brief) reason for the condition's last transition"`
|
Reason string `json:"reason,omitempty" description:"(brief) reason for the condition's last transition"`
|
||||||
|
Loading…
Reference in New Issue
Block a user