Skip to content

Commit

Permalink
add hot-standby filed into CloneSet CRD definition
Browse files Browse the repository at this point in the history
  • Loading branch information
yenniechen committed Sep 26, 2024
1 parent e6da390 commit 5def396
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apis/apps/v1alpha1/cloneset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ type CloneSetStatus struct {
// indicated by updateRevision and have a Ready Condition.
HotStandbyUpdatedReadyReplicas int32 `json:"hotStandbyUpdatedReadyReplicas,omitempty"`

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

// HotStandbyExpectedUpdatedReplicas is the number of hot-standby Pods that should be updated by CloneSet controller.
// This field is calculated via Replicas - Partition.
HotStandbyExpectedUpdatedReplicas int32 `json:"hotStandbyExpectedUpdatedReplicas,omitempty"`
Expand Down
6 changes: 6 additions & 0 deletions config/crd/bases/apps.kruise.io_clonesets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,12 @@ spec:
indicated by updateRevision and have a Ready Condition.
format: int32
type: integer
HotStandbyUpdatedAvailableReplicas:
description: |-
HotStandbyUpdatedAvailableReplicas is the number of hot-standby Pods created by the CloneSet controller from the CloneSet version
indicated by updateRevision and have a Ready Condition for at least minReadySeconds.
format: int32
type: integer
hotStandbyExpectedUpdatedReplicas:
description: |-
HotStandbyUpdatedReplicas is the number of hot-standby Pods created by the CloneSet controller from the CloneSet version
Expand Down

0 comments on commit 5def396

Please sign in to comment.