[release-4.1] refactor: workspace cascading deletion logic (#6251)

refactor: workspace cascading deletion logic

Signed-off-by: hongming <coder.scala@gmail.com>
Co-authored-by: hongming <coder.scala@gmail.com>
This commit is contained in:
KubeSphere CI Bot
2024-10-30 17:49:06 +08:00
committed by GitHub
parent abcd94fa4f
commit c297e6ab99
7 changed files with 190 additions and 179 deletions

View File

@@ -13,15 +13,17 @@ const (
KubeSphereConfigMapDataKey = "kubesphere.yaml"
KubectlPodNamePrefix = "ks-managed-kubectl"
WorkspaceLabelKey = "kubesphere.io/workspace"
DisplayNameAnnotationKey = "kubesphere.io/alias-name"
DescriptionAnnotationKey = "kubesphere.io/description"
CreatorAnnotationKey = "kubesphere.io/creator"
UsernameLabelKey = "kubesphere.io/username"
GenericConfigTypeLabel = "config.kubesphere.io/type"
KubectlPodLabel = "kubesphere.io/kubectl-pod"
ConfigHashAnnotation = "kubesphere.io/config-hash"
KubeSphereManagedLabel = "kubesphere.io/managed"
WorkspaceLabelKey = "kubesphere.io/workspace"
DisplayNameAnnotationKey = "kubesphere.io/alias-name"
DescriptionAnnotationKey = "kubesphere.io/description"
CreatorAnnotationKey = "kubesphere.io/creator"
UsernameLabelKey = "kubesphere.io/username"
GenericConfigTypeLabel = "config.kubesphere.io/type"
KubectlPodLabel = "kubesphere.io/kubectl-pod"
ConfigHashAnnotation = "kubesphere.io/config-hash"
KubeSphereManagedLabel = "kubesphere.io/managed"
DeletionPropagationAnnotation = "kubesphere.io/deletion-propagation"
CascadingDeletionFinalizer = "kubesphere.io/cascading-deletion"
)
var (