Skip to content

Commit 9424ce3

Browse files
feat: add-terminatingreplicas-in-cls (#48)
1 parent 6d5bc2b commit 9424ce3

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

apps/v1alpha1/collaset_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,10 @@ type CollaSetStatus struct {
263263
// +optional
264264
OperatingReplicas int32 `json:"operatingReplicas,omitempty"`
265265

266+
// TerminatingReplicas indicates the number of replicas with deletionTimestamps.
267+
// +optional
268+
TerminatingReplicas int32 `json:"terminatingReplicas,omitempty"`
269+
266270
// UpdatedReadyReplicas indicates the number of the pod with updated revision and ready condition
267271
// +optional
268272
UpdatedReadyReplicas int32 `json:"updatedReadyReplicas,omitempty"`

config/crd/apps/apps.kusionstack.io_collasets.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,11 @@ spec:
604604
description: the number of scheduled replicas for the CollaSet.
605605
format: int32
606606
type: integer
607+
terminatingReplicas:
608+
description: TerminatingReplicas indicates the number of replicas
609+
with deletionTimestamps.
610+
format: int32
611+
type: integer
607612
updatedAvailableReplicas:
608613
description: |-
609614
UpdatedAvailableReplicas indicates the number of available updated revision replicas for this CollaSet.

0 commit comments

Comments
 (0)