Skip to content

Commit

Permalink
enhancement(CollaSet): add column for collaset list (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
wu8685 committed Sep 25, 2023
1 parent 14dc032 commit ce4a048
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions apis/apps/v1alpha1/collaset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ type CollaSetCondition struct {
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="DESIRED",type="integer",JSONPath=".spec.replicas",description="The desired number of pods."
// +kubebuilder:printcolumn:name="CURRENT",type="integer",JSONPath=".status.replicas",description="The number of currently all pods."
// +kubebuilder:printcolumn:name="AVAILABLE",type="integer",JSONPath=".status.availableReplicas",description="The number of pods available."
// +kubebuilder:printcolumn:name="UPDATED",type="integer",JSONPath=".status.updatedReplicas",description="The number of pods updated."
// +kubebuilder:printcolumn:name="UPDATED_READY",type="integer",JSONPath=".status.updatedReadyReplicas",description="The number of pods ready."
// +kubebuilder:printcolumn:name="UPDATED_AVAILABLE",type="integer",JSONPath=".status.updatedAvailableReplicas",description="The number of pods updated available."
Expand Down
4 changes: 4 additions & 0 deletions config/crd/bases/apps.kusionstack.io_collasets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ spec:
jsonPath: .status.replicas
name: CURRENT
type: integer
- description: The number of pods available.
jsonPath: .status.availableReplicas
name: AVAILABLE
type: integer
- description: The number of pods updated.
jsonPath: .status.updatedReplicas
name: UPDATED
Expand Down

0 comments on commit ce4a048

Please sign in to comment.