It is all about including Certificate Manager CRD to be deleted in cert_manager role during uninstall action. Without that, during common services reinstall, ibm common services operator will lookup Certificate CRD and will find it and think certmanager is installed and call cert manager webhook pod (which is not present because it was deleted during certmanager uninstall) and then fail to proceed with ibm-common-services reinstall...
Tests done:
CertManager CRDs before uninstall:
All Certmanager CRDs are gone:
Then, re-running mas install command after a mas uninstall allows reinstalling ibm common services and cert-manager just fine:
This PR addresses problems found in https://github.com/ibm-mas/cli/issues/868
It is all about including Certificate Manager CRD to be deleted in
cert_manager role
duringuninstall
action. Without that, during common services reinstall, ibm common services operator will lookup Certificate CRD and will find it and think certmanager is installed and call cert manager webhook pod (which is not present because it was deleted during certmanager uninstall) and then fail to proceed with ibm-common-services reinstall...Tests done:
CertManager CRDs before uninstall:
All Certmanager CRDs are gone:
Then, re-running
mas install
command after amas uninstall
allows reinstalling ibm common services and cert-manager just fine: