Skip to content

Commit 0bbfa2e

Browse files
committed
refactor: delete unused labels and annotations
1 parent 532e296 commit 0bbfa2e

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

rollout/well_known_annotations.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ const (
3535
// AnnoRolloutProgressingInfos contains a slice of progressing info on resource.
3636
AnnoRolloutProgressingInfos = "rollout.kusionstack.io/progressing-infos"
3737

38-
// AnnoPodRolloutProgressingInfos contains a slice of progressing infos on a pod.
39-
AnnoPodRolloutProgressingInfos = "rollout.kusionstack.io/pod-progressing-infos"
40-
4138
// AnnoRolloutName is the name of the rollout object.
4239
AnnoRolloutName = "rollout.kusionstack.io/name"
40+
)
4341

42+
// traffic annotations
43+
const (
4444
// AnnoRouteSpecBackup is the origin spec of route object. It is used to rollback.
4545
AnnoRouteSpecBackup = "rollout.kusionstack.io/route-spec-backup"
4646
// AnnoRouteConditions is the conditions of route object.

rollout/well_known_labels.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,13 @@ const (
2323

2424
// canary labels
2525
const (
26-
// This label will be added to canary workload and pods.
27-
LabelCanary = "rollout.kusionstack.io/canary"
26+
// This label will be set on objects to indicate that they are temporary resources.
27+
LabelCanaryResource = "rollout.kusionstack.io/canary-resource"
28+
2829
// This label indicates the revision of pods controlled by workload.
2930
LabelTrafficLane = "rollout.kusionstack.io/traffic-lane"
3031
LabelValueTrafficLaneStable = "stable"
3132
LabelValueTrafficLaneCanary = "canary"
32-
33-
// This label is added to objects to indicate that they are temporary resources.
34-
LabelTemporaryResource = "rollout.kusionstack.io/temporary-resource"
3533
)
3634

3735
// rollout class label

0 commit comments

Comments
 (0)