From c482e67e4b081c572fedec262478723ad4369017 Mon Sep 17 00:00:00 2001 From: gvicentin Date: Fri, 5 Apr 2024 17:58:48 -0300 Subject: [PATCH] Showing Shutdown when using kubectl get rpaasinstance --- api/v1alpha1/rpaasinstance_types.go | 1 + config/crd/bases/extensions.tsuru.io_rpaasinstances.yaml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/api/v1alpha1/rpaasinstance_types.go b/api/v1alpha1/rpaasinstance_types.go index 7cb43c67..6615afb4 100644 --- a/api/v1alpha1/rpaasinstance_types.go +++ b/api/v1alpha1/rpaasinstance_types.go @@ -382,6 +382,7 @@ type RpaasInstanceExternalAddressesStatus struct { // +kubebuilder:subresource:status // +kubebuilder:subresource:scale:specpath=.spec.replicas,statuspath=.status.currentReplicas,selectorpath=.status.podSelector // +kubebuilder:printcolumn:name="Suspended",type=boolean,JSONPath=`.spec.suspend` +// +kubebuilder:printcolumn:name="Shutdown",type=boolean,JSONPath=`.spec.shutdown` // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" // +kubebuilder:printcolumn:name="IPs",type=string,JSONPath=`.status.externalAddresses.ips[*]` // +kubebuilder:printcolumn:name="Hostnames",type=string,JSONPath=`.status.externalAddresses.hostnames[*]` diff --git a/config/crd/bases/extensions.tsuru.io_rpaasinstances.yaml b/config/crd/bases/extensions.tsuru.io_rpaasinstances.yaml index 22b87130..5aeb10fa 100644 --- a/config/crd/bases/extensions.tsuru.io_rpaasinstances.yaml +++ b/config/crd/bases/extensions.tsuru.io_rpaasinstances.yaml @@ -22,6 +22,9 @@ spec: - jsonPath: .spec.suspend name: Suspended type: boolean + - jsonPath: .spec.shutdown + name: Shutdown + type: boolean - jsonPath: .metadata.creationTimestamp name: Age type: date