Skip to content

Commit

Permalink
feat: Add a column to workload indicating if it is finished (#2615)
Browse files Browse the repository at this point in the history
* feat: Add a column to workload indicating if it is finished

* fix: update helm charts
  • Loading branch information
highpon committed Jul 16, 2024
1 parent 5840429 commit 5dde9fc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions apis/kueue/v1beta1/workload_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ const (
// +kubebuilder:printcolumn:name="Queue",JSONPath=".spec.queueName",type="string",description="Name of the queue this workload was submitted to"
// +kubebuilder:printcolumn:name="Reserved in",JSONPath=".status.admission.clusterQueue",type="string",description="Name of the ClusterQueue where the workload is reserving quota"
// +kubebuilder:printcolumn:name="Admitted",JSONPath=".status.conditions[?(@.type=='Admitted')].status",type="string",description="Admission status"
// +kubebuilder:printcolumn:name="Finished",JSONPath=".status.conditions[?(@.type=='Finished')].status",type="string",description="Workload finished"
// +kubebuilder:printcolumn:name="Age",JSONPath=".metadata.creationTimestamp",type="date",description="Time this workload was created"
// +kubebuilder:resource:shortName={wl}

Expand Down
4 changes: 4 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 @@ -44,6 +44,10 @@ spec:
jsonPath: .status.conditions[?(@.type=='Admitted')].status
name: Admitted
type: string
- description: Workload finished
jsonPath: .status.conditions[?(@.type=='Finished')].status
name: Finished
type: string
- description: Time this workload was created
jsonPath: .metadata.creationTimestamp
name: Age
Expand Down
4 changes: 4 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 @@ -29,6 +29,10 @@ spec:
jsonPath: .status.conditions[?(@.type=='Admitted')].status
name: Admitted
type: string
- description: Workload finished
jsonPath: .status.conditions[?(@.type=='Finished')].status
name: Finished
type: string
- description: Time this workload was created
jsonPath: .metadata.creationTimestamp
name: Age
Expand Down

0 comments on commit 5dde9fc

Please sign in to comment.