Error uninstalling Kiali Operator

Hello,

We are getting an error trying to uninstall the Kiali Operator. We are using version 1.16.0. When we run the following to undeploy:

bash <(curl -L https://kiali.io/getLatestKialiOperator) --uninstall-mode true

we get the following:

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 109 100 109 0 0 361 0 --:–:-- --:–:-- --:–:-- 360
100 37285 100 37285 0 0 61468 0 --:–:-- --:–:-- --:–:-- 61468
Unknown argument [–uninstall-mode]. Aborting.

Has anyone seen this issue before?

The https://kiali.io/getLatestKialiOperator simply points to the master copy of the deploy script here: https://github.com/kiali/kiali-operator/blob/7e648623dac3e60c98193d2a24310efd2d63162b/deploy/deploy-kiali-operator.sh

That changed today to now use the helm chart under the covers. We now recommend people who do not have OperatorHub to install Kiali Operator using the Kiali Helm Chart. If you use the deploy script now, it will be using the helm chart underneath.

If you want to uninstall Kiali Operator using the old deploy script, use the old version as found on github. If you are using Kiali v1.16 that is here: https://raw.githubusercontent.com/kiali/kiali-operator/v1.16.0/deploy/deploy-kiali-operator.sh

So this should do what you want: bash <(curl -L https://raw.githubusercontent.com/kiali/kiali-operator/v1.16.0/deploy/deploy-kiali-operator.sh) --uninstall-mode true

The new Helm Chart is here: https://kiali.org/kiali-operator/charts/index.yaml

The new docs that discuss the Helm Chart is here: https://kiali.io/documentation/v1.22/installation-guide/#_helm_chart

That worked! Thanks so much for your help!

Now one thing I do see however is that it doesn’t delete the kiali-operator namespace because it says there is a pod still running. Checked and the kiali-operator pod is still running there. Shouldn’t the script still delete it?

Won’t delete the namespace if it sees a pod still in there. See: