volcano.sh/apis@v1.8.2/pkg/apis/scheduling/v1beta1/labels.go (about)

     1  /*
     2  Copyright 2019 The Volcano 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  package v1beta1
    18  
    19  // AnnotationPrefix is the key prefix to pick annotations from upper resource to podgroup
    20  const AnnotationPrefix = "volcano.sh/"
    21  
    22  // JobWaitingTime is the key of sla plugin to set maximum waiting time
    23  // that a job could stay Pending in service level agreement
    24  const JobWaitingTime = "volcano.sh/sla-waiting-time"
    25  
    26  const KubeHierarchyAnnotationKey = "volcano.sh/hierarchy"
    27  
    28  const KubeHierarchyWeightAnnotationKey = "volcano.sh/hierarchy-weights"
    29  
    30  // KubeGroupNameAnnotationKey is the annotation key of Pod to identify
    31  // which PodGroup it belongs to.
    32  const KubeGroupNameAnnotationKey = "scheduling.k8s.io/group-name"
    33  
    34  // VolcanoGroupNameAnnotationKey is the annotation key of Pod to identify
    35  // which PodGroup it belongs to.
    36  const VolcanoGroupNameAnnotationKey = GroupName + "/group-name"
    37  
    38  // VolcanoGroupMinResourcesAnnotationKey is the annotation key of PodGroup's PodGroup.Spec.MinResources
    39  // which PodGroup it belongs to.
    40  const VolcanoGroupMinResourcesAnnotationKey = GroupName + "/group-min-resources"
    41  
    42  // QueueNameAnnotationKey is the annotation key of Pod to identify
    43  // which queue it belongs to.
    44  const QueueNameAnnotationKey = GroupName + "/queue-name"
    45  
    46  // PodPreemptable is the key of preemptable
    47  const PodPreemptable = "volcano.sh/preemptable"
    48  
    49  // CooldownTime is the key of cooldown-time, value's format "600s","10m"
    50  // Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
    51  const CooldownTime = "volcano.sh/cooldown-time"
    52  
    53  //RevocableZone is the key of revocable-zone
    54  const RevocableZone = "volcano.sh/revocable-zone"
    55  
    56  // JDBMinAvailable is the key of min available pod number
    57  const JDBMinAvailable = "volcano.sh/jdb-min-available"
    58  
    59  // JDBMaxUnavailable is the key of max unavailable pod number
    60  const JDBMaxUnavailable = "volcano.sh/jdb-max-unavailable"
    61  
    62  // NumaPolicyKey is the key of pod numa-topology policy
    63  const NumaPolicyKey = "volcano.sh/numa-topology-policy"
    64  
    65  // TopologyDecisionAnnotation is the key of topology decision about pod request resource
    66  const TopologyDecisionAnnotation = "volcano.sh/topology-decision"
    67  
    68  // PodQosLevel is the key of pod qos level
    69  const PodQosLevel = "volcano.sh/qos-level"