Skip to content

Commit f75cf66

Browse files
committed
openstack_wait: call 'make openstack' dynamically
In some cases CI might end up calling 'make openstack' multiple times when using openstack_wait. This updates the Makefile dependency here to be dynamic and only call 'make openstack' if a subscription isn't found for the operator.
1 parent 5075cd2 commit f75cf66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,8 +734,10 @@ openstack: openstack_prep operator_namespace ## installs the operator, also runs
734734
oc apply -f ${OPERATOR_DIR}
735735

736736
.PHONY: openstack_wait
737-
openstack_wait: openstack ## waits openstack CSV to succeed.
737+
openstack_wait: ## waits openstack CSV to succeed.
738738
$(eval $(call vars,$@,openstack))
739+
# call make_openstack if it isn't already
740+
bash -c '(oc get subscription -n openstack-operators openstack-operator || make openstack) || true'
739741
timeout $(TIMEOUT) bash -c 'until $$(oc get csv -l operators.coreos.com/openstack-operator.openstack-operators -n ${OPERATOR_NAMESPACE} | grep -q Succeeded); do sleep 1; done'
740742

741743

0 commit comments

Comments
 (0)