add queue weight range 1-65535, default 1

Signed-off-by: dongjiang <dongjiang1989@126.com>
Co-Authored-By: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
dongjiang 2025-03-06 12:13:49 +08:00
parent 385346e5e4
commit 5a15527a16
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -346,6 +346,9 @@ type NodeGroupAntiAffinity struct {
// QueueSpec represents the template of Queue.
type QueueSpec struct {
// +optional
// +kubebuilder:default:=1
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Maximum=65535
Weight int32 `json:"weight,omitempty" protobuf:"bytes,1,opt,name=weight"`
// +optional