diff --git a/api/v1alpha1/etcd_types.go b/api/v1alpha1/etcd_types.go index 0bc32c2f5..bf4bcdfc3 100644 --- a/api/v1alpha1/etcd_types.go +++ b/api/v1alpha1/etcd_types.go @@ -289,6 +289,8 @@ type EtcdStatus struct { // +kubebuilder:object:root=true // +kubebuilder:subresource:status +// +kubebuilder:printcolumn:name="Ready",type=string,JSONPath=`.status.ready` +// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` // +kubebuilder:subresource:scale:specpath=.spec.replicas,statuspath=.status.replicas,selectorpath=.status.labelSelector // Etcd is the Schema for the etcds API diff --git a/config/crd/bases/druid.gardener.cloud_etcds.yaml b/config/crd/bases/druid.gardener.cloud_etcds.yaml index da477525b..ba87bfa3f 100644 --- a/config/crd/bases/druid.gardener.cloud_etcds.yaml +++ b/config/crd/bases/druid.gardener.cloud_etcds.yaml @@ -8,6 +8,13 @@ metadata: creationTimestamp: null name: etcds.druid.gardener.cloud spec: + additionalPrinterColumns: + - JSONPath: .status.ready + name: Ready + type: string + - JSONPath: .metadata.creationTimestamp + name: Age + type: date group: druid.gardener.cloud names: kind: Etcd