Skip to content

Commit

Permalink
Showing Shutdown when using kubectl get rpaasinstance
Browse files Browse the repository at this point in the history
  • Loading branch information
gvicentin committed Apr 5, 2024
1 parent 7e9db4e commit c482e67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1alpha1/rpaasinstance_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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[*]`
Expand Down
3 changes: 3 additions & 0 deletions config/crd/bases/extensions.tsuru.io_rpaasinstances.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c482e67

Please sign in to comment.