Merge pull request #92 from jinzhejz/1.5-dev

add queue type and node group label
This commit is contained in:
Volcano Bot 2022-10-13 11:05:27 +08:00 committed by GitHub
commit 04ee883069
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 2 deletions

View File

@ -132,6 +132,13 @@ const (
CloseQueueAction QueueAction = "CloseQueue"
)
const (
// SharedQueueType is the type of queue that could use share resource pool
SharedQueueType = "share"
// ExclusiveQueueType is the type of queue that could use exclusive resource pool
ExclusiveQueueType = "exclusive"
)
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

View File

@ -35,7 +35,7 @@ const QueueNameAnnotationKey = GroupName + "/queue-name"
// PodPreemptable is the key of preemptable
const PodPreemptable = "volcano.sh/preemptable"
//RevocableZone is the key of revocable-zone
// RevocableZone is the key of revocable-zone
const RevocableZone = "volcano.sh/revocable-zone"
// JDBMinAvailable is the key of min available pod number
@ -48,4 +48,8 @@ const JDBMaxUnavailable = "volcano.sh/jdb-max-unavailable"
const NumaPolicyKey = "volcano.sh/numa-topology-policy"
// TopologyDecisionAnnotation is the key of topology decision about pod request resource
const TopologyDecisionAnnotation = "volcano.sh/topology-decision"
const TopologyDecisionAnnotation = "volcano.sh/topology-decision"
// NodeGroupLabelKey is the label key of Node to identify
// which resource pool it belongs to
const NodeGroupLabelKey = "volcano.sh/nodegroup-name"

View File

@ -138,6 +138,13 @@ const (
CloseQueueAction QueueAction = "CloseQueue"
)
const (
// SharedQueueType is the type of queue that could use share resource pool
SharedQueueType = "share"
// ExclusiveQueueType is the type of queue that could use exclusive resource pool
ExclusiveQueueType = "exclusive"
)
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:object:root=true