diff --git a/Makefile b/Makefile index 1c4562d..e576fc5 100644 --- a/Makefile +++ b/Makefile @@ -741,7 +741,8 @@ openstack_wait: openstack ## waits openstack CSV to succeed. # creates the new initialization resource for our operators .PHONY: openstack_init -openstack_init: openstack_wait openstack_deploy_cleanup openstack_repo +openstack_init: openstack_wait + test -f ${OPERATOR_BASE_DIR}/openstack-operator/config/samples/operator_v1beta1_openstack.yaml || make openstack_repo oc create -f ${OPERATOR_BASE_DIR}/openstack-operator/config/samples/operator_v1beta1_openstack.yaml oc wait openstack/openstack -n ${OPERATOR_NAMESPACE} --for condition=Ready --timeout=${TIMEOUT}