Skip to content

Commit 08b66ee

Browse files
authored
upgrade clusterStagedUpdateRun APIs to v1beta1 (#1005)
1 parent 43acf41 commit 08b66ee

20 files changed

+2732
-370
lines changed

apis/placement/v1alpha1/common.go

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,6 @@ const (
1515
// ResourceOverrideSnapshotKind is the kind of the ResourceOverrideSnapshot.
1616
ResourceOverrideSnapshotKind = "ResourceOverrideSnapshot"
1717

18-
// ClusterStagedUpdateRunKind is the kind of the ClusterStagedUpdateRun.
19-
ClusterStagedUpdateRunKind = "ClusterStagedUpdateRun"
20-
21-
// ClusterStagedUpdateStrategyKind is the kind of the ClusterStagedUpdateStrategy.
22-
ClusterStagedUpdateStrategyKind = "ClusterStagedUpdateStrategy"
23-
24-
// ClusterApprovalRequestKind is the kind of the ClusterApprovalRequest.
25-
ClusterApprovalRequestKind = "ClusterApprovalRequest"
26-
27-
// ClusterStagedUpdateRunFinalizer is used by the ClusterStagedUpdateRun controller to make sure that the ClusterStagedUpdateRun
28-
// object is not deleted until all its dependent resources are deleted.
29-
ClusterStagedUpdateRunFinalizer = fleetPrefix + "stagedupdaterun-finalizer"
30-
31-
// TargetUpdateRunLabel indicates the target update run on a staged run related object.
32-
TargetUpdateRunLabel = fleetPrefix + "targetupdaterun"
33-
34-
// UpdateRunDeleteStageName is the name of delete stage in the staged update run.
35-
UpdateRunDeleteStageName = fleetPrefix + "deleteStage"
36-
37-
// IsLatestUpdateRunApprovalLabel indicates if the approval is the latest approval on a staged run.
38-
IsLatestUpdateRunApprovalLabel = fleetPrefix + "isLatestUpdateRunApproval"
39-
40-
// TargetUpdatingStageNameLabel indicates the updating stage name on a staged run related object.
41-
TargetUpdatingStageNameLabel = fleetPrefix + "targetUpdatingStage"
42-
43-
// ApprovalTaskNameFmt is the format of the approval task name.
44-
ApprovalTaskNameFmt = "%s-%s"
45-
4618
// OverrideClusterNameVariable is the reserved variable in the override value that will be replaced by the actual cluster name.
4719
OverrideClusterNameVariable = "${MEMBER-CLUSTER-NAME}"
4820
)

apis/placement/v1beta1/commons.go

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ const (
2020
WorkKind = "Work"
2121
// AppliedWorkKind represents the kind of AppliedWork.
2222
AppliedWorkKind = "AppliedWork"
23+
// ClusterStagedUpdateRunKind is the kind of the ClusterStagedUpdateRun.
24+
ClusterStagedUpdateRunKind = "ClusterStagedUpdateRun"
25+
// ClusterStagedUpdateStrategyKind is the kind of the ClusterStagedUpdateStrategy.
26+
ClusterStagedUpdateStrategyKind = "ClusterStagedUpdateStrategy"
27+
// ClusterApprovalRequestKind is the kind of the ClusterApprovalRequest.
28+
ClusterApprovalRequestKind = "ClusterApprovalRequest"
2329
)
2430

2531
const (
@@ -91,6 +97,25 @@ const (
9197
// PreviousBindingStateAnnotation records the previous state of a binding.
9298
// This is used to remember if an "unscheduled" binding was moved from a "bound" state or a "scheduled" state.
9399
PreviousBindingStateAnnotation = fleetPrefix + "previous-binding-state"
100+
101+
// ClusterStagedUpdateRunFinalizer is used by the ClusterStagedUpdateRun controller to make sure that the ClusterStagedUpdateRun
102+
// object is not deleted until all its dependent resources are deleted.
103+
ClusterStagedUpdateRunFinalizer = fleetPrefix + "stagedupdaterun-finalizer"
104+
105+
// TargetUpdateRunLabel indicates the target update run on a staged run related object.
106+
TargetUpdateRunLabel = fleetPrefix + "targetupdaterun"
107+
108+
// UpdateRunDeleteStageName is the name of delete stage in the staged update run.
109+
UpdateRunDeleteStageName = fleetPrefix + "deleteStage"
110+
111+
// IsLatestUpdateRunApprovalLabel indicates if the approval is the latest approval on a staged run.
112+
IsLatestUpdateRunApprovalLabel = fleetPrefix + "isLatestUpdateRunApproval"
113+
114+
// TargetUpdatingStageNameLabel indicates the updating stage name on a staged run related object.
115+
TargetUpdatingStageNameLabel = fleetPrefix + "targetUpdatingStage"
116+
117+
// ApprovalTaskNameFmt is the format of the approval task name.
118+
ApprovalTaskNameFmt = "%s-%s"
94119
)
95120

96121
// NamespacedName comprises a resource name, with a mandatory namespace.

apis/placement/v1beta1/stageupdate_types.go

Lines changed: 469 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)