Skip to content

Commit 80a4b0c

Browse files
committed
[feat]: Surface deletionTimestamp as a printcolumn and Set priority=1
Signed-off-by: Tarun Chinmai Sekar <[email protected]>
1 parent 0af42ca commit 80a4b0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/pipeline/templates/crd_types.go.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ type {{ .CRD.Kind }}Status struct {
4747
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
4848
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
4949
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
50+
// +kubebuilder:printcolumn:name="DELETION TIMESTAMP",type="date",JSONPath=".metadata.deletionTimestamp",priority=1
5051
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,{{ .Provider.ShortName }}}{{ if .CRD.Path }},path={{ .CRD.Path }}{{ end }}
5152
type {{ .CRD.Kind }} struct {
5253
metav1.TypeMeta `json:",inline"`

0 commit comments

Comments
 (0)