From 32a76b95291ebe279a82d27c8c4cc7f043c9f773 Mon Sep 17 00:00:00 2001 From: m00g3n Date: Mon, 20 Nov 2023 11:46:12 +0100 Subject: [PATCH] code review comments addressed --- api/v1/gardenercluster_types.go | 2 ++ ...rastructuremanager.kyma-project.io_gardenerclusters.yaml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/api/v1/gardenercluster_types.go b/api/v1/gardenercluster_types.go index 832916ad..4f658008 100644 --- a/api/v1/gardenercluster_types.go +++ b/api/v1/gardenercluster_types.go @@ -27,6 +27,8 @@ import ( //+kubebuilder:subresource:status //+kubebuilder:printcolumn:name="STATE",type=string,JSONPath=`.status.state` //+kubebuilder:printcolumn:name="RUNTIME-ID",type=string,JSONPath=`.metadata.labels.kyma-project\.io/runtime-id` +//+kubebuilder:printcolumn:name="SHOOT-NAME",type=string,JSONPath=`.metadata.labels.kyma-project\.io/shoot-name` +//+kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" // GardenerCluster is the Schema for the clusters API type GardenerCluster struct { diff --git a/config/crd/bases/infrastructuremanager.kyma-project.io_gardenerclusters.yaml b/config/crd/bases/infrastructuremanager.kyma-project.io_gardenerclusters.yaml index 53cb0bc0..ccf23d54 100644 --- a/config/crd/bases/infrastructuremanager.kyma-project.io_gardenerclusters.yaml +++ b/config/crd/bases/infrastructuremanager.kyma-project.io_gardenerclusters.yaml @@ -21,6 +21,12 @@ spec: - jsonPath: .metadata.labels.kyma-project\.io/runtime-id name: RUNTIME-ID type: string + - jsonPath: .metadata.labels.kyma-project\.io/shoot-name + name: SHOOT-NAME + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date name: v1 schema: openAPIV3Schema: