k8s.io/kubernetes@v1.29.3/pkg/apis/core/annotation_key_constants.go (about)

     1  /*
     2  Copyright 2017 The Kubernetes Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  // This file should be consistent with pkg/api/v1/annotation_key_constants.go.
    18  
    19  package core
    20  
    21  const (
    22  	// ImagePolicyFailedOpenKey is added to pods created by failing open when the image policy
    23  	// webhook backend fails.
    24  	ImagePolicyFailedOpenKey string = "alpha.image-policy.k8s.io/failed-open"
    25  
    26  	// MirrorPodAnnotationKey represents the annotation key set by kubelets when creating mirror pods
    27  	MirrorPodAnnotationKey string = "kubernetes.io/config.mirror"
    28  
    29  	// TolerationsAnnotationKey represents the key of tolerations data (json serialized)
    30  	// in the Annotations of a Pod.
    31  	TolerationsAnnotationKey string = "scheduler.alpha.kubernetes.io/tolerations"
    32  
    33  	// TaintsAnnotationKey represents the key of taints data (json serialized)
    34  	// in the Annotations of a Node.
    35  	TaintsAnnotationKey string = "scheduler.alpha.kubernetes.io/taints"
    36  
    37  	// SeccompPodAnnotationKey represents the key of a seccomp profile applied
    38  	// to all containers of a pod.
    39  	// Deprecated: set a pod security context `seccompProfile` field.
    40  	SeccompPodAnnotationKey string = "seccomp.security.alpha.kubernetes.io/pod"
    41  
    42  	// SeccompContainerAnnotationKeyPrefix represents the key of a seccomp profile applied
    43  	// to one container of a pod.
    44  	// Deprecated: set a container security context `seccompProfile` field.
    45  	SeccompContainerAnnotationKeyPrefix string = "container.seccomp.security.alpha.kubernetes.io/"
    46  
    47  	// SeccompProfileRuntimeDefault represents the default seccomp profile used by container runtime.
    48  	// Deprecated: set a pod or container security context `seccompProfile` of type "RuntimeDefault" instead.
    49  	SeccompProfileRuntimeDefault string = "runtime/default"
    50  
    51  	// DeprecatedSeccompProfileDockerDefault represents the default seccomp profile used by docker.
    52  	// Deprecated: set a pod or container security context `seccompProfile` of type "RuntimeDefault" instead.
    53  	DeprecatedSeccompProfileDockerDefault string = "docker/default"
    54  
    55  	// PreferAvoidPodsAnnotationKey represents the key of preferAvoidPods data (json serialized)
    56  	// in the Annotations of a Node.
    57  	PreferAvoidPodsAnnotationKey string = "scheduler.alpha.kubernetes.io/preferAvoidPods"
    58  
    59  	// ObjectTTLAnnotationKey represents a suggestion for kubelet for how long it can cache
    60  	// an object (e.g. secret, config map) before fetching it again from apiserver.
    61  	// This annotation can be attached to node.
    62  	ObjectTTLAnnotationKey string = "node.alpha.kubernetes.io/ttl"
    63  
    64  	// NonConvertibleAnnotationPrefix annotation key prefix used to identify non-convertible json paths.
    65  	NonConvertibleAnnotationPrefix = "non-convertible.kubernetes.io"
    66  
    67  	kubectlPrefix = "kubectl.kubernetes.io/"
    68  
    69  	// LastAppliedConfigAnnotation is the annotation used to store the previous
    70  	// configuration of a resource for use in a three way diff by UpdateApplyAnnotation.
    71  	LastAppliedConfigAnnotation = kubectlPrefix + "last-applied-configuration"
    72  
    73  	// AnnotationLoadBalancerSourceRangesKey is the key of the annotation on a service to set allowed ingress ranges on their LoadBalancers
    74  	//
    75  	// It should be a comma-separated list of CIDRs, e.g. `0.0.0.0/0` to
    76  	// allow full access (the default) or `18.0.0.0/8,56.0.0.0/8` to allow
    77  	// access only from the CIDRs currently allocated to MIT & the USPS.
    78  	//
    79  	// Not all cloud providers support this annotation, though AWS & GCE do.
    80  	AnnotationLoadBalancerSourceRangesKey = "service.beta.kubernetes.io/load-balancer-source-ranges"
    81  
    82  	// EndpointsLastChangeTriggerTime is the annotation key, set for endpoints objects, that
    83  	// represents the timestamp (stored as RFC 3339 date-time string, e.g. '2018-10-22T19:32:52.1Z')
    84  	// of the last change, of some Pod or Service object, that triggered the endpoints object change.
    85  	// In other words, if a Pod / Service changed at time T0, that change was observed by endpoints
    86  	// controller at T1, and the Endpoints object was changed at T2, the
    87  	// EndpointsLastChangeTriggerTime would be set to T0.
    88  	//
    89  	// The "endpoints change trigger" here means any Pod or Service change that resulted in the
    90  	// Endpoints object change.
    91  	//
    92  	// Given the definition of the "endpoints change trigger", please note that this annotation will
    93  	// be set ONLY for endpoints object changes triggered by either Pod or Service change. If the
    94  	// Endpoints object changes due to other reasons, this annotation won't be set (or updated if it's
    95  	// already set).
    96  	//
    97  	// This annotation will be used to compute the in-cluster network programming latency SLI, see
    98  	// https://github.com/kubernetes/community/blob/master/sig-scalability/slos/network_programming_latency.md
    99  	EndpointsLastChangeTriggerTime = "endpoints.kubernetes.io/last-change-trigger-time"
   100  
   101  	// EndpointsOverCapacity will be set on an Endpoints resource when it
   102  	// exceeds the maximum capacity of 1000 addresses. Initially the Endpoints
   103  	// controller will set this annotation with a value of "warning". In a
   104  	// future release, the controller may set this annotation with a value of
   105  	// "truncated" to indicate that any addresses exceeding the limit of 1000
   106  	// have been truncated from the Endpoints resource.
   107  	EndpointsOverCapacity = "endpoints.kubernetes.io/over-capacity"
   108  
   109  	// MigratedPluginsAnnotationKey is the annotation key, set for CSINode objects, that is a comma-separated
   110  	// list of in-tree plugins that will be serviced by the CSI backend on the Node represented by CSINode.
   111  	// This annotation is used by the Attach Detach Controller to determine whether to use the in-tree or
   112  	// CSI Backend for a volume plugin on a specific node.
   113  	MigratedPluginsAnnotationKey = "storage.alpha.kubernetes.io/migrated-plugins"
   114  
   115  	// PodDeletionCost can be used to set to an int32 that represent the cost of deleting
   116  	// a pod compared to other pods belonging to the same ReplicaSet. Pods with lower
   117  	// deletion cost are preferred to be deleted before pods with higher deletion cost.
   118  	// Note that this is honored on a best-effort basis, and so it does not offer guarantees on
   119  	// pod deletion order.
   120  	// The implicit deletion cost for pods that don't set the annotation is 0, negative values are permitted.
   121  	//
   122  	// This annotation is beta-level and is only honored when PodDeletionCost feature is enabled.
   123  	PodDeletionCost = "controller.kubernetes.io/pod-deletion-cost"
   124  
   125  	// DeprecatedAnnotationTopologyAwareHints can be used to enable or disable
   126  	// Topology Aware Hints for a Service. This may be set to "Auto" or
   127  	// "Disabled". Any other value is treated as "Disabled". This annotation has
   128  	// been deprecated in favor of the `service.kubernetes.io/topology-mode`
   129  	// annotation which also allows "Auto" and "Disabled", but is not limited to
   130  	// those (it's open ended to provide room for experimentation while we
   131  	// pursue configuration for topology via specification). When both
   132  	// `service.kubernetes.io/topology-aware-hints` and
   133  	// `service.kubernetes.io/topology-mode` annotations are set, the value of
   134  	// `service.kubernetes.io/topology-aware-hints` has precedence.
   135  	DeprecatedAnnotationTopologyAwareHints = "service.kubernetes.io/topology-aware-hints"
   136  
   137  	// AnnotationTopologyMode can be used to enable or disable Topology Aware
   138  	// Routing for a Service. Well known values are "Auto" and "Disabled".
   139  	// Implementations may choose to develop new topology approaches, exposing
   140  	// them with domain-prefixed values. For example, "example.com/lowest-rtt"
   141  	// could be a valid implementation-specific value for this annotation. These
   142  	// heuristics will often populate topology hints on EndpointSlices, but that
   143  	// is not a requirement.
   144  	AnnotationTopologyMode = "service.kubernetes.io/topology-mode"
   145  )