Skip to content

Commit

Permalink
Do not omit weightedShare when zero (#2521)
Browse files Browse the repository at this point in the history
Change-Id: I4cd73c62cf99072f82994eed4090189712ab08c6
  • Loading branch information
alculquicondor committed Jul 3, 2024
1 parent 3286d19 commit 1d849aa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apis/kueue/v1beta1/clusterqueue_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 2 additions & 0 deletions charts/kueue/templates/crd/kueue.x-k8s.io_clusterqueues.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,8 @@ spec:
the maximum possible share value.
format: int64
type: integer
required:
- weightedShare
type: object
flavorsReservation:
description: |-
Expand Down
2 changes: 2 additions & 0 deletions config/components/crd/bases/kueue.x-k8s.io_clusterqueues.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,8 @@ spec:
the maximum possible share value.
format: int64
type: integer
required:
- weightedShare
type: object
flavorsReservation:
description: |-
Expand Down

0 comments on commit 1d849aa

Please sign in to comment.