diff --git a/api/v1/gardenercluster_types.go b/api/v1/gardenercluster_types.go index 6d04b31e..4f658008 100644 --- a/api/v1/gardenercluster_types.go +++ b/api/v1/gardenercluster_types.go @@ -25,6 +25,10 @@ import ( //+kubebuilder:object:root=true //+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 e571e2e8..ccf23d54 100644 --- a/config/crd/bases/infrastructuremanager.kyma-project.io_gardenerclusters.yaml +++ b/config/crd/bases/infrastructuremanager.kyma-project.io_gardenerclusters.yaml @@ -14,7 +14,20 @@ spec: singular: gardenercluster scope: Namespaced versions: - - name: v1 + - additionalPrinterColumns: + - jsonPath: .status.state + name: STATE + type: string + - 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: description: GardenerCluster is the Schema for the clusters API