Skip to content

Commit 5d99c04

Browse files
committed
CLI: Deprecate short name wl from workload crd
1 parent c9656d4 commit 5d99c04

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

apis/kueue/v1beta1/workload_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ const (
783783
// +kubebuilder:printcolumn:name="Admitted",JSONPath=".status.conditions[?(@.type=='Admitted')].status",type="string",description="Admission status"
784784
// +kubebuilder:printcolumn:name="Finished",JSONPath=".status.conditions[?(@.type=='Finished')].status",type="string",description="Workload finished"
785785
// +kubebuilder:printcolumn:name="Age",JSONPath=".metadata.creationTimestamp",type="date",description="Time this workload was created"
786-
// +kubebuilder:resource:shortName={wl,kwl,kueueworkload}
786+
// +kubebuilder:resource:shortName={kwl,kueueworkload}
787787

788788
// Workload is the Schema for the workloads API
789789
// +kubebuilder:validation:XValidation:rule="has(self.status) && has(self.status.conditions) && self.status.conditions.exists(c, c.type == 'QuotaReserved' && c.status == 'True') && has(self.status.admission) ? size(self.spec.podSets) == size(self.status.admission.podSetAssignments) : true", message="podSetAssignments must have the same number of podSets as the spec"

apis/kueue/v1beta2/workload_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ const (
10031003
// +kubebuilder:printcolumn:name="Admitted",JSONPath=".status.conditions[?(@.type=='Admitted')].status",type="string",description="Admission status"
10041004
// +kubebuilder:printcolumn:name="Finished",JSONPath=".status.conditions[?(@.type=='Finished')].status",type="string",description="Workload finished"
10051005
// +kubebuilder:printcolumn:name="Age",JSONPath=".metadata.creationTimestamp",type="date",description="Time this workload was created"
1006-
// +kubebuilder:resource:shortName={wl,kwl,kueueworkload}
1006+
// +kubebuilder:resource:shortName={kwl,kueueworkload}
10071007

10081008
// Workload is the Schema for the workloads API
10091009
// +kubebuilder:validation:XValidation:rule="has(self.status) && has(self.status.conditions) && self.status.conditions.exists(c, c.type == 'QuotaReserved' && c.status == 'True') && has(self.status.admission) ? size(self.spec.podSets) == size(self.status.admission.podSetAssignments) : true", message="podSetAssignments must have the same number of podSets as the spec"

charts/kueue/templates/crd/kueue.x-k8s.io_workloads.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ spec:
4444
listKind: WorkloadList
4545
plural: workloads
4646
shortNames:
47-
- wl
4847
- kwl
4948
- kueueworkload
5049
singular: workload

config/components/crd/bases/kueue.x-k8s.io_workloads.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ spec:
1212
listKind: WorkloadList
1313
plural: workloads
1414
shortNames:
15-
- wl
1615
- kwl
1716
- kueueworkload
1817
singular: workload

0 commit comments

Comments
 (0)