Skip to content

Commit 16f76e8

Browse files
authored
Add "Last Scheduled" column to history crd (#630)
1 parent aa037ae commit 16f76e8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

api/v1alpha1/history_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ type HistoryStatus struct {
9393
// +kubebuilder:printcolumn:name="AZ",type="string",JSONPath=".spec.availabilityZone"
9494
// +kubebuilder:printcolumn:name="Target Host",type="string",JSONPath=".status.current.targetHost"
9595
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].reason"
96+
// +kubebuilder:printcolumn:name="Last Scheduled",type="date",JSONPath=".status.current.timestamp"
9697
// +kubebuilder:printcolumn:name="Created",type="date",JSONPath=".metadata.creationTimestamp"
9798

9899
// The history is a CRD that provides a record of past scheduling decisions for a given resource (e.g., a nova instance).

helm/library/cortex/files/crds/cortex.cloud_histories.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ spec:
3030
- jsonPath: .status.conditions[?(@.type=='Ready')].reason
3131
name: Status
3232
type: string
33+
- jsonPath: .status.current.timestamp
34+
name: Last Scheduled
35+
type: date
3336
- jsonPath: .metadata.creationTimestamp
3437
name: Created
3538
type: date

0 commit comments

Comments
 (0)