File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -752,7 +752,11 @@ openstack_init: openstack_wait
752752openstack_cleanup : operator_namespace# # deletes the operator, but does not cleanup the service resources
753753 $(eval $(call vars,$@ ,openstack) )
754754 ${CLEANUP_DIR_CMD} ${OPERATOR_DIR}
755- if oc get openstack & > /dev/null; then oc delete --ignore-not-found=true openstack/openstack; fi
755+ # TODO: Once https://issues.redhat.com/browse/OSPRH-13217 is properly resolved, the
756+ # explicit calls to "oc delete" the webhooks can be removed below
757+ if oc get openstack & > /dev/null; then oc delete --ignore-not-found=true openstack/openstack \
758+ && oc delete mutatingwebhookconfiguration -l app.kubernetes.io/created-by=openstack-operator \
759+ && oc delete validatingwebhookconfiguration -l app.kubernetes.io/created-by=openstack-operator; fi
756760 oc delete subscription --all=true
757761 oc delete csv --all=true
758762 oc delete catalogsource --all=true
You can’t perform that action at this time.
0 commit comments