refactor: workspace cascading deletion logic (#6249)

Signed-off-by: hongming <coder.scala@gmail.com>
This commit is contained in:
hongming
2024-10-30 17:42:06 +08:00
committed by GitHub
parent 9aa17af5db
commit d63a24fc91
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 (