diff --git a/api/v1alpha1/history_types.go b/api/v1alpha1/history_types.go index df5e3a65d..47a37dec6 100644 --- a/api/v1alpha1/history_types.go +++ b/api/v1alpha1/history_types.go @@ -93,6 +93,7 @@ type HistoryStatus struct { // +kubebuilder:printcolumn:name="AZ",type="string",JSONPath=".spec.availabilityZone" // +kubebuilder:printcolumn:name="Target Host",type="string",JSONPath=".status.current.targetHost" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].reason" +// +kubebuilder:printcolumn:name="Last Scheduled",type="date",JSONPath=".status.current.timestamp" // +kubebuilder:printcolumn:name="Created",type="date",JSONPath=".metadata.creationTimestamp" // The history is a CRD that provides a record of past scheduling decisions for a given resource (e.g., a nova instance). diff --git a/helm/library/cortex/files/crds/cortex.cloud_histories.yaml b/helm/library/cortex/files/crds/cortex.cloud_histories.yaml index f91ad0cfc..cba52fa9b 100644 --- a/helm/library/cortex/files/crds/cortex.cloud_histories.yaml +++ b/helm/library/cortex/files/crds/cortex.cloud_histories.yaml @@ -30,6 +30,9 @@ spec: - jsonPath: .status.conditions[?(@.type=='Ready')].reason name: Status type: string + - jsonPath: .status.current.timestamp + name: Last Scheduled + type: date - jsonPath: .metadata.creationTimestamp name: Created type: date