mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 02:09:56 +00:00
Merge pull request #126508 from googs1025/fix_typo
modify comment in core/v1 package
This commit is contained in:
commit
8499e0e1ad
@ -23,7 +23,7 @@ const (
|
|||||||
// webhook backend fails.
|
// webhook backend fails.
|
||||||
ImagePolicyFailedOpenKey string = "alpha.image-policy.k8s.io/failed-open"
|
ImagePolicyFailedOpenKey string = "alpha.image-policy.k8s.io/failed-open"
|
||||||
|
|
||||||
// MirrorAnnotationKey represents the annotation key set by kubelets when creating mirror pods
|
// MirrorPodAnnotationKey represents the annotation key set by kubelets when creating mirror pods
|
||||||
MirrorPodAnnotationKey string = "kubernetes.io/config.mirror"
|
MirrorPodAnnotationKey string = "kubernetes.io/config.mirror"
|
||||||
|
|
||||||
// TolerationsAnnotationKey represents the key of tolerations data (json serialized)
|
// TolerationsAnnotationKey represents the key of tolerations data (json serialized)
|
||||||
@ -80,7 +80,7 @@ const (
|
|||||||
// This annotation can be attached to node.
|
// This annotation can be attached to node.
|
||||||
ObjectTTLAnnotationKey string = "node.alpha.kubernetes.io/ttl"
|
ObjectTTLAnnotationKey string = "node.alpha.kubernetes.io/ttl"
|
||||||
|
|
||||||
// annotation key prefix used to identify non-convertible json paths.
|
// NonConvertibleAnnotationPrefix is the annotation key prefix used to identify non-convertible json paths.
|
||||||
NonConvertibleAnnotationPrefix = "non-convertible.kubernetes.io"
|
NonConvertibleAnnotationPrefix = "non-convertible.kubernetes.io"
|
||||||
|
|
||||||
kubectlPrefix = "kubectl.kubernetes.io/"
|
kubectlPrefix = "kubectl.kubernetes.io/"
|
||||||
|
@ -20,7 +20,7 @@ import (
|
|||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
)
|
)
|
||||||
|
|
||||||
// IsAnAPIObject allows clients to preemptively get a reference to an API object and pass it to places that
|
// SetGroupVersionKind allows clients to preemptively get a reference to an API object and pass it to places that
|
||||||
// intend only to get a reference to that object. This simplifies the event recording interface.
|
// intend only to get a reference to that object. This simplifies the event recording interface.
|
||||||
func (obj *ObjectReference) SetGroupVersionKind(gvk schema.GroupVersionKind) {
|
func (obj *ObjectReference) SetGroupVersionKind(gvk schema.GroupVersionKind) {
|
||||||
obj.APIVersion, obj.Kind = gvk.ToAPIVersionAndKind()
|
obj.APIVersion, obj.Kind = gvk.ToAPIVersionAndKind()
|
||||||
|
@ -3237,7 +3237,7 @@ const (
|
|||||||
// during scheduling, for example due to nodeAffinity parsing errors.
|
// during scheduling, for example due to nodeAffinity parsing errors.
|
||||||
PodReasonSchedulerError = "SchedulerError"
|
PodReasonSchedulerError = "SchedulerError"
|
||||||
|
|
||||||
// TerminationByKubelet reason in DisruptionTarget pod condition indicates that the termination
|
// PodReasonTerminationByKubelet reason in DisruptionTarget pod condition indicates that the termination
|
||||||
// is initiated by kubelet
|
// is initiated by kubelet
|
||||||
PodReasonTerminationByKubelet = "TerminationByKubelet"
|
PodReasonTerminationByKubelet = "TerminationByKubelet"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user