Skip to content

Commit 31c64b9

Browse files
authored
Add additional printing columns (#729)
1 parent 48235a0 commit 31c64b9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

api/v1beta1/rabbitmqcluster_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ import (
2121

2222
// +kubebuilder:object:root=true
2323
// +kubebuilder:subresource:status
24+
// +kubebuilder:printcolumn:name="AllReplicasReady",type="string",JSONPath=".status.conditions[?(@.type == 'AllReplicasReady')].status"
25+
// +kubebuilder:printcolumn:name="ReconcileSuccess",type="string",JSONPath=".status.conditions[?(@.type == 'ReconcileSuccess')].status"
2426
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
2527
// +kubebuilder:resource:shortName={"rmq"},categories=all
2628
// RabbitmqCluster is the Schema for the RabbitmqCluster API. Each instance of this object

config/crd/bases/rabbitmq.com_rabbitmqclusters.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ spec:
2727
scope: Namespaced
2828
versions:
2929
- additionalPrinterColumns:
30+
- jsonPath: .status.conditions[?(@.type == 'AllReplicasReady')].status
31+
name: AllReplicasReady
32+
type: string
33+
- jsonPath: .status.conditions[?(@.type == 'ReconcileSuccess')].status
34+
name: ReconcileSuccess
35+
type: string
3036
- jsonPath: .metadata.creationTimestamp
3137
name: Age
3238
type: date

0 commit comments

Comments
 (0)