Skip to content

Commit

Permalink
[API][Workload] Add minimumCount for PodSet
Browse files Browse the repository at this point in the history
  • Loading branch information
trasc committed May 15, 2023
1 parent 60cec2f commit 8f7e247
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apis/kueue/v1beta1/workload_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@ type PodSet struct {
// count is the number of pods for the spec.
// +kubebuilder:validation:Minimum=1
Count int32 `json:"count"`

// minimumCount is the minimum number of pods for the spec acceptable
// in case of partial admission.
//
// If not provided, partial admission for the current PodSet is not
// enabled.
// +optional
MinimumCount *int32 `json:"minimumCount,omitempty"`
}

// WorkloadStatus defines the observed state of Workload
Expand Down
5 changes: 5 additions & 0 deletions apis/kueue/v1beta1/zz_generated.deepcopy.go

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

7 changes: 7 additions & 0 deletions charts/kueue/templates/crd/kueue.x-k8s.io_workloads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ spec:
format: int32
minimum: 1
type: integer
minimumCount:
description: "minimumCount is the minimum number of pods for
the spec acceptable in case of partial admission. \n If not
provided, partial admission for the current PodSet is not
enabled."
format: int32
type: integer
name:
description: name is the PodSet name.
type: string
Expand Down
7 changes: 7 additions & 0 deletions config/components/crd/bases/kueue.x-k8s.io_workloads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ spec:
format: int32
minimum: 1
type: integer
minimumCount:
description: "minimumCount is the minimum number of pods for
the spec acceptable in case of partial admission. \n If not
provided, partial admission for the current PodSet is not
enabled."
format: int32
type: integer
name:
description: name is the PodSet name.
type: string
Expand Down

0 comments on commit 8f7e247

Please sign in to comment.