Skip to content

Commit

Permalink
chore: related-configmap and configuration are reserved resources for…
Browse files Browse the repository at this point in the history
… cluster and component (#7052)
  • Loading branch information
sophon-zt committed Apr 15, 2024
1 parent 325d0e4 commit de4c361
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/apps/transformer_cluster_deletion.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{},
}
}

Expand Down
1 change: 1 addition & 0 deletions controllers/apps/transformer_component_deletion.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ func compOwnedPreserveKinds() []client.ObjectList {
&corev1.PersistentVolumeClaimList{},
&corev1.SecretList{},
&corev1.ConfigMapList{},
&appsv1alpha1.ConfigurationList{},
}
}

Expand Down

0 comments on commit de4c361

Please sign in to comment.