Skip to content

Commit 95b4692

Browse files
Merge pull request #999 from abays/webhook_cleanup
[OSPRH-13217] Remove OpenStack operator webhooks during 'make openstack_cleanup'
2 parents 26997db + 9745e5c commit 95b4692

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,11 @@ openstack_init: openstack_wait
752752
openstack_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

0 commit comments

Comments
 (0)