mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 10:20:51 +00:00
polish comments of non-enum values.
types: PodConditionType, NodeConditionType
This commit is contained in:
parent
f0d73cf650
commit
40e1b6b411
@ -288,7 +288,7 @@ type UncountedTerminatedPods struct {
|
|||||||
|
|
||||||
type JobConditionType string
|
type JobConditionType string
|
||||||
|
|
||||||
// These are valid conditions of a job.
|
// These are built-in conditions of a job.
|
||||||
const (
|
const (
|
||||||
// JobSuspended means the job has been suspended.
|
// JobSuspended means the job has been suspended.
|
||||||
JobSuspended JobConditionType = "Suspended"
|
JobSuspended JobConditionType = "Suspended"
|
||||||
|
@ -2633,7 +2633,7 @@ const (
|
|||||||
// PodConditionType is a valid value for PodCondition.Type
|
// PodConditionType is a valid value for PodCondition.Type
|
||||||
type PodConditionType string
|
type PodConditionType string
|
||||||
|
|
||||||
// These are valid conditions of pod.
|
// These are built-in conditions of pod. An application may use a custom condition not listed here.
|
||||||
const (
|
const (
|
||||||
// ContainersReady indicates whether all containers in the pod are ready.
|
// ContainersReady indicates whether all containers in the pod are ready.
|
||||||
ContainersReady PodConditionType = "ContainersReady"
|
ContainersReady PodConditionType = "ContainersReady"
|
||||||
@ -5083,8 +5083,8 @@ const (
|
|||||||
|
|
||||||
type NodeConditionType string
|
type NodeConditionType string
|
||||||
|
|
||||||
// These are valid conditions of node. Currently, we don't have enough information to decide
|
// These are valid but not exhaustive conditions of node. A cloud provider may set a condition not listed here.
|
||||||
// node condition. In the future, we will add more. The proposed set of conditions are:
|
// The built-in set of conditions are:
|
||||||
// NodeReachable, NodeLive, NodeReady, NodeSchedulable, NodeRunnable.
|
// NodeReachable, NodeLive, NodeReady, NodeSchedulable, NodeRunnable.
|
||||||
const (
|
const (
|
||||||
// NodeReady means kubelet is healthy and ready to accept pods.
|
// NodeReady means kubelet is healthy and ready to accept pods.
|
||||||
@ -5121,7 +5121,7 @@ type NodeCondition struct {
|
|||||||
|
|
||||||
type NodeAddressType string
|
type NodeAddressType string
|
||||||
|
|
||||||
// These are valid address type of node.
|
// These are built-in addresses type of node. A cloud provider may set a type not listed here.
|
||||||
const (
|
const (
|
||||||
// NodeHostName identifies a name of the node. Although every node can be assumed
|
// NodeHostName identifies a name of the node. Although every node can be assumed
|
||||||
// to have a NodeAddress of this type, its exact syntax and semantics are not
|
// to have a NodeAddress of this type, its exact syntax and semantics are not
|
||||||
@ -5293,7 +5293,7 @@ const (
|
|||||||
|
|
||||||
type NamespaceConditionType string
|
type NamespaceConditionType string
|
||||||
|
|
||||||
// These are valid conditions of a namespace.
|
// These are built-in conditions of a namespace.
|
||||||
const (
|
const (
|
||||||
// NamespaceDeletionDiscoveryFailure contains information about namespace deleter errors during resource discovery.
|
// NamespaceDeletionDiscoveryFailure contains information about namespace deleter errors during resource discovery.
|
||||||
NamespaceDeletionDiscoveryFailure NamespaceConditionType = "NamespaceDeletionDiscoveryFailure"
|
NamespaceDeletionDiscoveryFailure NamespaceConditionType = "NamespaceDeletionDiscoveryFailure"
|
||||||
@ -5781,7 +5781,8 @@ type EventList struct {
|
|||||||
// List holds a list of objects, which may not be known by the server.
|
// List holds a list of objects, which may not be known by the server.
|
||||||
type List metav1.List
|
type List metav1.List
|
||||||
|
|
||||||
// LimitType is a type of object that is limited
|
// LimitType is a type of object that is limited. It can be Pod, Container, PersistentVolumeClaim or
|
||||||
|
// a fully qualified resource name.
|
||||||
type LimitType string
|
type LimitType string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
Loading…
Reference in New Issue
Block a user