Skip to content

Commit

Permalink
chore: update cluster print colums
Browse files Browse the repository at this point in the history
  • Loading branch information
wusai80 committed Oct 30, 2024
1 parent a88c623 commit 3834e3c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
3 changes: 1 addition & 2 deletions apis/apps/v1/cluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ import (
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
// +kubebuilder:resource:categories={kubeblocks,all}
// +kubebuilder:printcolumn:name="CLUSTER-DEFINITION",type="string",JSONPath=".spec.clusterDefinitionRef",description="ClusterDefinition referenced by cluster."
// +kubebuilder:printcolumn:name="VERSION",type="string",JSONPath=".spec.clusterVersionRef",description="Cluster Application Version."
// +kubebuilder:printcolumn:name="CLUSTER-DEFINITION",type="string",JSONPath=".spec.clusterDef",description="ClusterDefinition referenced by cluster."
// +kubebuilder:printcolumn:name="TERMINATION-POLICY",type="string",JSONPath=".spec.terminationPolicy",description="Cluster termination policy."
// +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.phase",description="Cluster Status."
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
Expand Down
6 changes: 1 addition & 5 deletions config/crd/bases/apps.kubeblocks.io_clusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,9 @@ spec:
versions:
- additionalPrinterColumns:
- description: ClusterDefinition referenced by cluster.
jsonPath: .spec.clusterDefinitionRef
jsonPath: .spec.clusterDef
name: CLUSTER-DEFINITION
type: string
- description: Cluster Application Version.
jsonPath: .spec.clusterVersionRef
name: VERSION
type: string
- description: Cluster termination policy.
jsonPath: .spec.terminationPolicy
name: TERMINATION-POLICY
Expand Down
6 changes: 1 addition & 5 deletions deploy/helm/crds/apps.kubeblocks.io_clusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,9 @@ spec:
versions:
- additionalPrinterColumns:
- description: ClusterDefinition referenced by cluster.
jsonPath: .spec.clusterDefinitionRef
jsonPath: .spec.clusterDef
name: CLUSTER-DEFINITION
type: string
- description: Cluster Application Version.
jsonPath: .spec.clusterVersionRef
name: VERSION
type: string
- description: Cluster termination policy.
jsonPath: .spec.terminationPolicy
name: TERMINATION-POLICY
Expand Down

0 comments on commit 3834e3c

Please sign in to comment.