Skip to content

Commit

Permalink
add display column
Browse files Browse the repository at this point in the history
  • Loading branch information
labuladong committed Jul 29, 2024
1 parent e53eff3 commit 85abab2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1alpha1/pulsartopic_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ type PulsarTopicStatus struct {
//+kubebuilder:printcolumn:name="GENERATION",type=string,JSONPath=`.metadata.generation`
//+kubebuilder:printcolumn:name="OBSERVED_GENERATION",type=string,JSONPath=`.status.observedGeneration`
//+kubebuilder:printcolumn:name="READY",type=string,JSONPath=`.status.conditions[?(@.type=="Ready")].status`
//+kubebuilder:printcolumn:name="POLICY_READY",type=string,JSONPath=`.status.conditions[?(@.type=="PolicyReady")].status`

// PulsarTopic is the Schema for the pulsartopics API
type PulsarTopic struct {
Expand Down
3 changes: 3 additions & 0 deletions config/crd/bases/resource.streamnative.io_pulsartopics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ spec:
- jsonPath: .status.conditions[?(@.type=="Ready")].status
name: READY
type: string
- jsonPath: .status.conditions[?(@.type=="PolicyReady")].status
name: POLICY_READY
type: string
name: v1alpha1
schema:
openAPIV3Schema:
Expand Down

0 comments on commit 85abab2

Please sign in to comment.