From becaed3e7a5a27dc6fdef2cedf7ae56aa29d6e6a Mon Sep 17 00:00:00 2001 From: Markus Wieland Date: Wed, 25 Mar 2026 11:56:28 +0100 Subject: [PATCH] Add "Last Scheduled" column to history crd --- api/v1alpha1/history_types.go | 1 + helm/library/cortex/files/crds/cortex.cloud_histories.yaml | 3 +++ 2 files changed, 4 insertions(+) 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