Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions config/crd/rollout/rollout.kusionstack.io_rolloutruns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4740,6 +4740,30 @@ spec:
type: array
type: object
type: array
skipToleration:
description: |-
SkipToleration records the accumulated toleration from skipped batches per workload.
When a batch is skipped, the gap between expected and actual replicas for each workload
is accumulated into this field, allowing subsequent batches to tolerate the deficit.
items:
description: WorkloadSkipToleration records the toleration value accumulated from skipped batches for a specific workload.
properties:
cluster:
description: Cluster defines which cluster the workload is in.
type: string
name:
description: Name is the workload name.
type: string
toleration:
description: |-
Toleration is the accumulated toleration value from skipped batches.
It represents how many replicas the workload is allowed to be short of.
format: int32
type: integer
required:
- toleration
type: object
type: array
required:
- currentBatchIndex
type: object
Expand Down
16 changes: 16 additions & 0 deletions rollout/v1alpha1/rolloutrun_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,27 @@ type RolloutRunStatus struct {
TargetStatuses []RolloutWorkloadStatus `json:"targetStatuses,omitempty"`
}

// WorkloadSkipToleration records the toleration value accumulated from skipped batches for a specific workload.
type WorkloadSkipToleration struct {
// Cluster defines which cluster the workload is in.
Cluster string `json:"cluster,omitempty"`
// Name is the workload name.
Name string `json:"name,omitempty"`
// Toleration is the accumulated toleration value from skipped batches.
// It represents how many replicas the workload is allowed to be short of.
Toleration int32 `json:"toleration"`
}

type RolloutRunBatchStatus struct {
// RolloutBatchStatus contains status of current batch
RolloutBatchStatus `json:",inline"`
// Records contains all batches status details.
Records []RolloutRunStepStatus `json:"records,omitempty"`
// SkipTolerations records the accumulated toleration from skipped batches per workload.
// When a batch is skipped, the gap between expected and actual replicas for each workload
// is accumulated into this field, allowing subsequent batches to tolerate the deficit.
// +optional
SkipTolerations []WorkloadSkipToleration `json:"skipTolerations,omitempty"`
}

type RolloutRunPhase string
Expand Down
21 changes: 21 additions & 0 deletions rollout/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading