How to uninstall XtraDB operator using Helm chart? namspace hangs in terminating state

I do the installation using helm in xtradb namespace like this:

helm repo add percona https://percona.github.io/percona-helm-charts/
kubectl create namespace xtradb
helm install xtradb-operator percona/pxc-operator --namespace xtradb
helm install xtradb percona/pxc-db --namespace xtradb --set cluster.enabled=true

XtraDB installation was not successful. Then I want to remove both database and the operator:

helm uninstall xtradb  --namespace xtradb
helm uninstall xtradb-operator --namespace xtradb

Then the namspace xtradb hangs in terminating state and I need to clean the namespace manually.
Is there a better way to uninstall?

1 Like