diff --git a/rollout/well_known_annotations.go b/rollout/well_known_annotations.go index 419ea10..94a4dc9 100644 --- a/rollout/well_known_annotations.go +++ b/rollout/well_known_annotations.go @@ -35,12 +35,12 @@ const ( // AnnoRolloutProgressingInfos contains a slice of progressing info on resource. AnnoRolloutProgressingInfos = "rollout.kusionstack.io/progressing-infos" - // AnnoPodRolloutProgressingInfos contains a slice of progressing infos on a pod. - AnnoPodRolloutProgressingInfos = "rollout.kusionstack.io/pod-progressing-infos" - // AnnoRolloutName is the name of the rollout object. AnnoRolloutName = "rollout.kusionstack.io/name" +) +// traffic annotations +const ( // AnnoRouteSpecBackup is the origin spec of route object. It is used to rollback. AnnoRouteSpecBackup = "rollout.kusionstack.io/route-spec-backup" // AnnoRouteConditions is the conditions of route object. diff --git a/rollout/well_known_labels.go b/rollout/well_known_labels.go index ba14c34..1c49169 100644 --- a/rollout/well_known_labels.go +++ b/rollout/well_known_labels.go @@ -23,15 +23,13 @@ const ( // canary labels const ( - // This label will be added to canary workload and pods. - LabelCanary = "rollout.kusionstack.io/canary" + // This label will be set on objects to indicate that they are temporary resources. + LabelCanaryResource = "rollout.kusionstack.io/canary-resource" + // This label indicates the revision of pods controlled by workload. LabelTrafficLane = "rollout.kusionstack.io/traffic-lane" LabelValueTrafficLaneStable = "stable" LabelValueTrafficLaneCanary = "canary" - - // This label is added to objects to indicate that they are temporary resources. - LabelTemporaryResource = "rollout.kusionstack.io/temporary-resource" ) // rollout class label