From de4c3612113d632e0afcf41dc1024597de23babb Mon Sep 17 00:00:00 2001 From: sophon Date: Mon, 15 Apr 2024 15:52:41 +0800 Subject: [PATCH] chore: related-configmap and configuration are reserved resources for cluster and component (#7052) --- controllers/apps/transformer_cluster_deletion.go | 3 +++ controllers/apps/transformer_component_deletion.go | 1 + 2 files changed, 4 insertions(+) diff --git a/controllers/apps/transformer_cluster_deletion.go b/controllers/apps/transformer_cluster_deletion.go index f48126dfcedc..558811178a94 100644 --- a/controllers/apps/transformer_cluster_deletion.go +++ b/controllers/apps/transformer_cluster_deletion.go @@ -150,6 +150,9 @@ func haltPreserveKinds() []client.ObjectList { &corev1.PersistentVolumeClaimList{}, &corev1.SecretList{}, &corev1.ConfigMapList{}, + // The owner of the configuration in version 0.9 has been adjusted to component cr. + // for compatible with version 0.8 + &appsv1alpha1.ConfigurationList{}, } } diff --git a/controllers/apps/transformer_component_deletion.go b/controllers/apps/transformer_component_deletion.go index de5cfd216192..7d3e7ace2d04 100644 --- a/controllers/apps/transformer_component_deletion.go +++ b/controllers/apps/transformer_component_deletion.go @@ -185,6 +185,7 @@ func compOwnedPreserveKinds() []client.ObjectList { &corev1.PersistentVolumeClaimList{}, &corev1.SecretList{}, &corev1.ConfigMapList{}, + &appsv1alpha1.ConfigurationList{}, } }