sigs.k8s.io/kueue@v0.6.2/pkg/constants/constants.go (about) 1 /* 2 Copyright 2022 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 package constants 18 19 import ( 20 "time" 21 ) 22 23 const ( 24 KueueName = "kueue" 25 JobControllerName = KueueName + "-job-controller" 26 WorkloadControllerName = KueueName + "-workload-controller" 27 AdmissionName = KueueName + "-admission" 28 ReclaimablePodsMgr = KueueName + "-reclaimable-pods" 29 30 // UpdatesBatchPeriod is the batch period to hold workload updates 31 // before syncing a Queue and ClusterQueue objects. 32 UpdatesBatchPeriod = time.Second 33 34 // DefaultPriority is used to set priority of workloads 35 // that do not specify any priority class and there is no priority class 36 // marked as default. 37 DefaultPriority = 0 38 39 WorkloadPriorityClassSource = "kueue.x-k8s.io/workloadpriorityclass" 40 PodPriorityClassSource = "scheduling.k8s.io/priorityclass" 41 42 DefaultPendingWorkloadsLimit = 1000 43 44 IsNegativeErrorMsg string = `must be greater than or equal to 0` 45 )