cleanup app when workspace is deleted

Signed-off-by: LiHui <andrewli@yunify.com>
This commit is contained in:
LiHui
2021-08-05 17:37:12 +08:00
parent 418a2a09c7
commit 3e5822a0b2
6 changed files with 347 additions and 6 deletions

View File

@@ -41,6 +41,7 @@ const (
ChartApplicationIdLabelKey = "application.kubesphere.io/app-id"
ChartApplicationVersionIdLabelKey = "application.kubesphere.io/app-version-id"
CategoryIdLabelKey = "application.kubesphere.io/app-category-id"
DangingAppCleanupKey = "application.kubesphere.io/app-cleanup"
CreatorAnnotationKey = "kubesphere.io/creator"
UsernameLabelKey = "kubesphere.io/username"
DevOpsProjectLabelKey = "kubesphere.io/devopsproject"
@@ -70,6 +71,8 @@ const (
OpenpitrixAttachmentTag = "Attachment"
OpenpitrixRepositoryTag = "Repository"
OpenpitrixManagementTag = "App Management"
CleanupDangingAppOngoing = "ongoing"
CleanupDangingAppDone = "done"
DevOpsCredentialTag = "DevOps Credential"
DevOpsPipelineTag = "DevOps Pipeline"