From 80a4b0c0046465ed7130c991f3132379927976ed Mon Sep 17 00:00:00 2001 From: Tarun Chinmai Sekar Date: Tue, 22 Jul 2025 17:03:15 -0700 Subject: [PATCH] [feat]: Surface deletionTimestamp as a printcolumn and Set priority=1 Signed-off-by: Tarun Chinmai Sekar --- pkg/pipeline/templates/crd_types.go.tmpl | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/pipeline/templates/crd_types.go.tmpl b/pkg/pipeline/templates/crd_types.go.tmpl index 310fc214..889e2e38 100644 --- a/pkg/pipeline/templates/crd_types.go.tmpl +++ b/pkg/pipeline/templates/crd_types.go.tmpl @@ -47,6 +47,7 @@ type {{ .CRD.Kind }}Status struct { // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" // +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +// +kubebuilder:printcolumn:name="DELETION TIMESTAMP",type="date",JSONPath=".metadata.deletionTimestamp",priority=1 // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,{{ .Provider.ShortName }}}{{ if .CRD.Path }},path={{ .CRD.Path }}{{ end }} type {{ .CRD.Kind }} struct { metav1.TypeMeta `json:",inline"`