Skip to content

Commit

Permalink
set clonesets updatedAvailableReplicas omitempty (openkruise#1390)
Browse files Browse the repository at this point in the history
Signed-off-by: liheng.zms <liheng.zms@alibaba-inc.com>
  • Loading branch information
zmberg authored Aug 28, 2023
1 parent e6205a5 commit 99ea20c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion apis/apps/v1alpha1/cloneset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ type CloneSetStatus struct {

// UpdatedAvailableReplicas is the number of Pods created by the CloneSet controller from the CloneSet version
// indicated by updateRevision and have a Ready Condition for at least minReadySeconds.
UpdatedAvailableReplicas int32 `json:"updatedAvailableReplicas"`
UpdatedAvailableReplicas int32 `json:"updatedAvailableReplicas,omitempty"`

// ExpectedUpdatedReplicas is the number of Pods that should be updated by CloneSet controller.
// This field is calculated via Replicas - Partition.
Expand Down
1 change: 0 additions & 1 deletion config/crd/bases/apps.kruise.io_clonesets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,6 @@ spec:
- availableReplicas
- readyReplicas
- replicas
- updatedAvailableReplicas
- updatedReadyReplicas
- updatedReplicas
type: object
Expand Down

0 comments on commit 99ea20c

Please sign in to comment.