From e0e51da6e95effdb5aa05ac7c128fc185ed27c80 Mon Sep 17 00:00:00 2001 From: zoumo Date: Wed, 23 Jul 2025 15:32:14 +0800 Subject: [PATCH] feat: add route condition types and struct --- rollout/v1alpha1/shared_types.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rollout/v1alpha1/shared_types.go b/rollout/v1alpha1/shared_types.go index dacc991..93a55ed 100644 --- a/rollout/v1alpha1/shared_types.go +++ b/rollout/v1alpha1/shared_types.go @@ -116,3 +116,13 @@ type CanaryProgressingInfo struct{} type BatchProgressingInfo struct { CurrentBatchIndex int32 `json:"currentBatchIndex"` } + +const ( + RouteConditionTypeReady = "Ready" + RouteConditionTypeSynced = "Synced" +) + +// RouteConditionExtension contains the conditions of route +type RouteConditionExtension struct { + Conditions []metav1.Condition `json:"conditions,omitempty"` +}