Skip to content

Commit

Permalink
Add priority in queue spec
Browse files Browse the repository at this point in the history
Signed-off-by: bufan <[email protected]>
  • Loading branch information
TaiPark authored and bufan committed Sep 2, 2024
1 parent ca8c852 commit a12713c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/apis/scheduling/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,10 @@ type QueueSpec struct {
// The amount of resources configured by the user. This part of resource can be shared with other queues and reclaimed back.
// +optional
Deserved v1.ResourceList `json:"deserved,omitempty" protobuf:"bytes,9,opt,name=deserved"`

// Priority define the priority of queue. Higher values are prioritized for scheduling and considered later during reclamation.
// +optional
Priority int32 `json:"priority,omitempty" protobuf:"bytes,10,opt,name=priority"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
4 changes: 4 additions & 0 deletions pkg/apis/scheduling/v1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,10 @@ type QueueSpec struct {
// The amount of resources configured by the user. This part of resource can be shared with other queues and reclaimed back.
// +optional
Deserved v1.ResourceList `json:"deserved,omitempty" protobuf:"bytes,9,opt,name=deserved"`

// Priority define the priority of queue. Higher values are prioritized for scheduling and considered later during reclamation.
// +optional
Priority int32 `json:"priority,omitempty" protobuf:"bytes,10,opt,name=priority"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
2 changes: 2 additions & 0 deletions pkg/apis/scheduling/v1beta1/zz_generated.conversion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions pkg/client/applyconfiguration/scheduling/v1beta1/queuespec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a12713c

Please sign in to comment.