operator
operator copied to clipboard
PWX-38400 : Do not attempt to delete plugin on non-openshift clusters
What this PR does / why we need it: While doing Portworx uninstall, all the components are deleted and for Plugin, even though plugin is not created on non-openshift clusters, operator tries to delete it.
- As a fix, added additional check to check if plugin is supported on the platform or not.
Which issue(s) this PR fixes (optional) Closes # https://purestorage.atlassian.net/browse/PWX-38400
Special notes for your reviewer:
- Existing UT TestPluginInstallAndUninstall verifies the test of uninstall on OCP platform
- Manually verified on vanilla k8s and OCP platform install and uninstall of PX.