From f1326a7276af11d9d68ce86c2ddb5fc1fea6f3f8 Mon Sep 17 00:00:00 2001 From: Kunju Perath Date: Fri, 14 Oct 2022 19:17:52 -0400 Subject: [PATCH] bug fix: missing age column for databasecluster --- api/v1alpha1/databasecluster_types.go | 1 + .../crd/bases/databases.digitalocean.com_databaseclusters.yaml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/api/v1alpha1/databasecluster_types.go b/api/v1alpha1/databasecluster_types.go index 8cdf30ef..4f071f84 100644 --- a/api/v1alpha1/databasecluster_types.go +++ b/api/v1alpha1/databasecluster_types.go @@ -75,6 +75,7 @@ type DatabaseClusterStatus struct { //+kubebuilder:subresource:status // DatabaseCluster is the Schema for the databaseclusters API +//+kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" // +kubebuilder:printcolumn:name="Engine",type=string,JSONPath=`.spec.engine` // +kubebuilder:printcolumn:name="Cluster name",type=string,JSONPath=`.spec.name` // +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.status` diff --git a/config/crd/bases/databases.digitalocean.com_databaseclusters.yaml b/config/crd/bases/databases.digitalocean.com_databaseclusters.yaml index 5ff74ab6..055cfbc1 100644 --- a/config/crd/bases/databases.digitalocean.com_databaseclusters.yaml +++ b/config/crd/bases/databases.digitalocean.com_databaseclusters.yaml @@ -16,6 +16,9 @@ spec: scope: Namespaced versions: - additionalPrinterColumns: + - jsonPath: .metadata.creationTimestamp + name: Age + type: date - jsonPath: .spec.engine name: Engine type: string