kubeblocks icon indicating copy to clipboard operation
kubeblocks copied to clipboard

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

Open ahjing99 opened this issue 1 year ago • 1 comments

➜ ~ 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

ahjing99 avatar Sep 27 '23 07:09 ahjing99