Skip to content

Commit e8ff1aa

Browse files
committed
fix: update workload status field && set AvailableReplicas to optional
1 parent fd0f1c4 commit e8ff1aa

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

config/crd/rollout/rollout.kusionstack.io_rolloutruns.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4701,7 +4701,6 @@ spec:
47014701
description: UpdatedRevision is the updated template revision used to generate pods.
47024702
type: string
47034703
required:
4704-
- availableReplicas
47054704
- replicas
47064705
- updatedAvailableReplicas
47074706
- updatedReadyReplicas
@@ -4812,7 +4811,6 @@ spec:
48124811
description: UpdatedRevision is the updated template revision used to generate pods.
48134812
type: string
48144813
required:
4815-
- availableReplicas
48164814
- replicas
48174815
- updatedAvailableReplicas
48184816
- updatedReadyReplicas
@@ -4959,7 +4957,6 @@ spec:
49594957
description: UpdatedRevision is the updated template revision used to generate pods.
49604958
type: string
49614959
required:
4962-
- availableReplicas
49634960
- replicas
49644961
- updatedAvailableReplicas
49654962
- updatedReadyReplicas

rollout/v1alpha1/rollout_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ type RolloutReplicasSummary struct {
179179
// Replicas is the desired number of pods targeted by workload
180180
Replicas int32 `json:"replicas"`
181181
// AvailableReplicas is the number of service available pods targeted by workload.
182+
// +optional
182183
AvailableReplicas int32 `json:"availableReplicas"`
183184
// UpdatedReplicas is the number of pods targeted by workload that have the updated template spec.
184185
UpdatedReplicas int32 `json:"updatedReplicas"`

0 commit comments

Comments
 (0)