Skip to content

Commit

Permalink
inital implementattion
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Zhang committed Oct 23, 2024
1 parent 867327a commit bddc19b
Show file tree
Hide file tree
Showing 28 changed files with 4,124 additions and 360 deletions.
2 changes: 1 addition & 1 deletion apis/cluster/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions apis/placement/v1alpha1/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,23 @@ const (

// ResourceOverrideSnapshotKind is the kind of the ResourceOverrideSnapshotKind.
ResourceOverrideSnapshotKind = "ResourceOverrideSnapshot"

// StagedUpdateRunFinalizer is used by the staged update run controller to make sure that the stagedUpdateRun
// object is not deleted until all its dependent resources are deleted.
StagedUpdateRunFinalizer = fleetPrefix + "stagedupdaterun-finalizer"

// TargetUpdateRunLabel is the label that indicates the target update run on a staged run related object.
TargetUpdateRunLabel = fleetPrefix + "targetupdaterun"

// The name of delete stage in the staged update run
UpdateRunDeleteStageName = fleetPrefix + "deleteStage"

// IsLatestUpdateRunApprovalLabel is the label that indicates if the apporavl is the latest approval on a staged run.
IsLatestUpdateRunApprovalLabel = fleetPrefix + "isLatestUpdateRunApproval"

// UpdatingStageNameLabel is the label that indicates the updating stage name on a staged run related object.
TargetUpdatingStageNameLabel = fleetPrefix + "targetUpdatingStage"

// ApprovalTaskNameFmt is the format of the approval task name.
ApprovalTaskNameFmt = "%s-%s"
)
127 changes: 59 additions & 68 deletions apis/placement/v1alpha1/stagedupdate_types.go

Large diffs are not rendered by default.

267 changes: 132 additions & 135 deletions apis/placement/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bddc19b

Please sign in to comment.