-
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 cleanup-priority annotation
Signed-off-by: ZhiweiYin <zyin@redhat.com>
- Loading branch information
1 parent
eb6bdf7
commit 8d45f64
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 ( | ||
// CleanupPriorityAnnotationKey is a annotation for the resources deployed in cluster ns which are waiting to | ||
// be cleaned up after cluster is deleted. | ||
// The value is an integer value [0,100], The larger the value, the later the order of deletion. | ||
// The deletion order is : | ||
// 1. delete resources without this annotation firstly. | ||
// 2. delete resources with invalid value of this annotation (!= [0,100]). | ||
// 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. | ||
CleanupPriorityAnnotationKey string = "open-cluster-management.io/cleanup-priority" | ||
) |