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
134 changes: 33 additions & 101 deletions config/crd/apps/apps.kusionstack.io_collasets.yaml

Large diffs are not rendered by default.

918 changes: 325 additions & 593 deletions config/crd/apps/apps.kusionstack.io_poddecorations.yaml

Large diffs are not rendered by default.

17 changes: 16 additions & 1 deletion config/crd/rollout/rollout.kusionstack.io_backendroutings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2409,7 +2409,22 @@ spec:
conditions:
description: Conditions is the list of conditions
items:
description: "Condition contains details for one aspect of the current state of this API Resource.\n---\nThis struct is intended for direct use as an array at the field path .status.conditions. For example,\n\n\n\ttype FooStatus struct{\n\t // Represents the observations of a foo's current state.\n\t // Known .status.conditions.type are: \"Available\", \"Progressing\", and \"Degraded\"\n\t // +patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t // other fields\n\t}"
description: |-
Condition contains details for one aspect of the current state of this API Resource.
---
This struct is intended for direct use as an array at the field path .status.conditions. For example,
type FooStatus struct{
// Represents the observations of a foo's current state.
// Known .status.conditions.type are: "Available", "Progressing", and "Degraded"
// +patchMergeKey=type
// +patchStrategy=merge
// +listType=map
// +listMapKey=type
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`


// other fields
}
properties:
lastTransitionTime:
description: |-
Expand Down
15 changes: 0 additions & 15 deletions config/crd/rollout/rollout.kusionstack.io_rolloutruns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4700,11 +4700,6 @@ spec:
updatedRevision:
description: UpdatedRevision is the updated template revision used to generate pods.
type: string
required:
- replicas
- updatedAvailableReplicas
- updatedReadyReplicas
- updatedReplicas
type: object
type: array
webhooks:
Expand Down Expand Up @@ -4810,11 +4805,6 @@ spec:
updatedRevision:
description: UpdatedRevision is the updated template revision used to generate pods.
type: string
required:
- replicas
- updatedAvailableReplicas
- updatedReadyReplicas
- updatedReplicas
type: object
type: array
webhooks:
Expand Down Expand Up @@ -4956,11 +4946,6 @@ spec:
updatedRevision:
description: UpdatedRevision is the updated template revision used to generate pods.
type: string
required:
- replicas
- updatedAvailableReplicas
- updatedReadyReplicas
- updatedReplicas
type: object
type: array
type: object
Expand Down
55 changes: 55 additions & 0 deletions config/crd/rollout/rollout.kusionstack.io_rollouts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,61 @@ spec:
rolloutID:
description: RolloutID is reference to rolloutRun name.
type: string
workloadStatuses:
description: WorkloadStatuses describes the referenced workloads status
items:
properties:
availableReplicas:
description: AvailableReplicas is the number of service available
pods targeted by workload.
format: int32
type: integer
cluster:
description: Cluster defines which cluster the workload is in.
type: string
generation:
description: Generation is the found in workload metadata.
format: int64
type: integer
name:
description: Name is the workload name
type: string
observedGeneration:
description: ObservedGeneration is the most recent generation
observed for this workload.
format: int64
type: integer
replicas:
description: Replicas is the desired number of pods targeted
by workload
format: int32
type: integer
stableRevision:
description: StableRevision is the old stable revision used
to generate pods.
type: string
updatedAvailableReplicas:
description: UpdatedAvailableReplicas is the number of service
available pods targeted by workload that have the updated
template spec.
format: int32
type: integer
updatedReadyReplicas:
description: UpdatedReadyReplicas is the number of ready pods
targeted by workload that have the updated template spec.
format: int32
type: integer
updatedReplicas:
description: UpdatedReplicas is the number of pods targeted
by workload that have the updated template spec.
format: int32
type: integer
updatedRevision:
description: UpdatedRevision is the updated template revision
used to generate pods.
type: string
type: object
type: array
type: object
type: object
served: true
Expand Down
8 changes: 8 additions & 0 deletions rollout/v1alpha1/rollout_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ type RolloutStatus struct {
LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`
// RolloutID is reference to rolloutRun name.
RolloutID string `json:"rolloutID,omitempty"`

// WorkloadStatuses describes the referenced workloads status
// +optional
WorkloadStatuses []RolloutWorkloadStatus `json:"workloadStatuses,omitempty"`
}

// RolloutPhase indicates the current rollout phase
Expand Down Expand Up @@ -177,15 +181,19 @@ type RolloutBatchStatus struct {

type RolloutReplicasSummary struct {
// Replicas is the desired number of pods targeted by workload
// +optional
Replicas int32 `json:"replicas"`
// AvailableReplicas is the number of service available pods targeted by workload.
// +optional
AvailableReplicas int32 `json:"availableReplicas"`
// UpdatedReplicas is the number of pods targeted by workload that have the updated template spec.
// +optional
UpdatedReplicas int32 `json:"updatedReplicas"`
// UpdatedReadyReplicas is the number of ready pods targeted by workload that have the updated template spec.
// +optional
UpdatedReadyReplicas int32 `json:"updatedReadyReplicas"`
// UpdatedAvailableReplicas is the number of service available pods targeted by workload that have the updated template spec.
// +optional
UpdatedAvailableReplicas int32 `json:"updatedAvailableReplicas"`
}

Expand Down
5 changes: 5 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