diff --git a/apis/kueue/v1beta1/clusterqueue_types.go b/apis/kueue/v1beta1/clusterqueue_types.go index 92d8a66c2e..7efb9a46c9 100644 --- a/apis/kueue/v1beta1/clusterqueue_types.go +++ b/apis/kueue/v1beta1/clusterqueue_types.go @@ -349,7 +349,7 @@ type FairSharingStatus struct { // If zero, it means that the usage of the ClusterQueue is below the nominal quota. // If the ClusterQueue has a weight of zero, this will return 9223372036854775807, // the maximum possible share value. - WeightedShare int64 `json:"weightedShare,omitempty"` + WeightedShare int64 `json:"weightedShare"` } const ( diff --git a/charts/kueue/templates/crd/kueue.x-k8s.io_clusterqueues.yaml b/charts/kueue/templates/crd/kueue.x-k8s.io_clusterqueues.yaml index a399f89e43..68212f2a92 100644 --- a/charts/kueue/templates/crd/kueue.x-k8s.io_clusterqueues.yaml +++ b/charts/kueue/templates/crd/kueue.x-k8s.io_clusterqueues.yaml @@ -613,6 +613,8 @@ spec: the maximum possible share value. format: int64 type: integer + required: + - weightedShare type: object flavorsReservation: description: |- diff --git a/config/components/crd/bases/kueue.x-k8s.io_clusterqueues.yaml b/config/components/crd/bases/kueue.x-k8s.io_clusterqueues.yaml index 1685eff763..41e6b943ef 100644 --- a/config/components/crd/bases/kueue.x-k8s.io_clusterqueues.yaml +++ b/config/components/crd/bases/kueue.x-k8s.io_clusterqueues.yaml @@ -598,6 +598,8 @@ spec: the maximum possible share value. format: int64 type: integer + required: + - weightedShare type: object flavorsReservation: description: |-