Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partial admission #771

Merged
merged 8 commits into from
Jun 7, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[API][Workload] Add miniCount for PodSet
  • Loading branch information
trasc committed Jun 7, 2023
commit 180c09268a38ab9a0b93bb06917d08329bab1cab
11 changes: 11 additions & 0 deletions apis/kueue/v1beta1/workload_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,17 @@ type PodSet struct {
// count is the number of pods for the spec.
// +kubebuilder:validation:Minimum=1
Count int32 `json:"count"`

// minCount is the minimum number of pods for the spec acceptable
// if the workload supports partial admission.
//
// If not provided, partial admission for the current PodSet is not
// enabled.
//
// Only one podSet within the workload can use this.
//
// +optional
MinCount *int32 `json:"minCount,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.

8 changes: 8 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 @@ -73,6 +73,14 @@ spec:
format: int32
minimum: 1
type: integer
minCount:
description: "minCount is the minimum number of pods for the
spec acceptable if the workload supports partial admission.
\n If not provided, partial admission for the current PodSet
is not enabled. \n Only one podSet within the workload can
use this."
format: int32
type: integer
name:
description: name is the PodSet name.
type: string
Expand Down
8 changes: 8 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 @@ -60,6 +60,14 @@ spec:
format: int32
minimum: 1
type: integer
minCount:
description: "minCount is the minimum number of pods for the
spec acceptable if the workload supports partial admission.
\n If not provided, partial admission for the current PodSet
is not enabled. \n Only one podSet within the workload can
use this."
format: int32
type: integer
name:
description: name is the PodSet name.
type: string
Expand Down