-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add clusterDeleting condition and deletion-priority label
Signed-off-by: ZhiweiYin <[email protected]>
- Loading branch information
1 parent
eb6bdf7
commit f12e86f
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package utils | ||
|
||
const ( | ||
// LabelDeletionPriority is a label for the resources deployed in cluster ns which are waiting to be cleaned up | ||
// after cluster is deleted. | ||
// The value is an integer value, The larger the value, the later the order of deletion. | ||
// The deletion order is : | ||
// 1. delete resources without this label firstly. | ||
// 2. delete resources with invalid value of this label. | ||
// 3. delete resources following the priority value. For example, there are 2 manifestWorks, one value is set 100 | ||
// and another is set 10, the manifestWorks with 10 will be deleted before the one with 100. | ||
LabelDeletionPriority string = "open-cluster-management.io/deletion-priority" | ||
) |