apecloud / kubeblocks

KubeBlocks is an open-source control plane software that runs and manages databases, message queues and other stateful applications on K8s.
https://kubeblocks.io
GNU Affero General Public License v3.0
2.2k stars 184 forks source link

[BUG]polardbx configmaps leftover need to be cleaned after cluster and kubeblocks uninstalled #5292

Closed ahjing99 closed 2 weeks ago

ahjing99 commented 1 year ago

➜ ~ kbcli version Kubernetes: v1.27.3-gke.100 kbcli: 0.7.0-alpha.19

After polardbx cluster is deleted and kubeblocks uninstalled, there is still polardbx configmaps leftover "polardbx-scripts " to stop kubeblocks installation, this need to be cleaned

➜  ~ k get cluster
No resources found in default namespace.
➜  ~ kbcli kubeblocks uninstall
Warning: this action will remove all KubeBlocks resources.
Please type "uninstall-kubeblocks" to confirm: uninstall-kubeblocks
Uninstall KubeBlocks in namespace "kb-system"
Wait for addons to be disabled
  apecloud-mysql                                   OK
  grafana                                          OK
  kafka                                            OK
  mongodb                                          OK
  mysql                                            OK
  postgresql                                       OK
  prometheus                                       OK
  pulsar                                           OK
  redis                                            OK
  snapshot-controller                              OK
Uninstall helm release kubeblocks 0.7.0-alpha.18   OK
Remove helm repo kubeblocks                        OK
Remove built-in custom resources                   OK
Remove addons                                      OK
Remove clusterdefinitions                          OK
Remove clusterversions                             OK
Remove configmaps                                  OK
Remove customresourcedefinitions                   OK
Remove storageproviders                            OK
Uninstall KubeBlocks done.

   `kbcli kubeblocks install --create-namespace  --namespace default `

error: there are resources left by previous KubeBlocks version, try to run "kbcli kubeblocks uninstall" to clean up
  configmaps: polardbx-scripts

➜  ~ k get cm
NAME                        DATA   AGE
grafana-polardbx-overview   1      22h
kube-root-ca.crt            1      2d4h
polardbx-scripts            5      22h
github-actions[bot] commented 1 year ago

This issue has been marked as stale because it has been open for 30 days with no activity

shanshanying commented 2 weeks ago

Fixed.