Skip to content

Commit ee15226

Browse files
committed
Make 'openstack_init' target be idempotent
1 parent 7d4f8bb commit ee15226

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,8 +744,8 @@ openstack_wait: ## waits openstack CSV to succeed.
744744
# creates the new initialization resource for our operators
745745
.PHONY: openstack_init
746746
openstack_init: openstack_wait
747-
test -f ${OPERATOR_BASE_DIR}/openstack-operator/config/samples/operator_v1beta1_openstack.yaml || make openstack_repo
748-
oc create -f ${OPERATOR_BASE_DIR}/openstack-operator/config/samples/operator_v1beta1_openstack.yaml
747+
bash -c 'test -f ${OPERATOR_BASE_DIR}/openstack-operator/config/samples/operator_v1beta1_openstack.yaml || make openstack_repo'
748+
oc apply -f ${OPERATOR_BASE_DIR}/openstack-operator/config/samples/operator_v1beta1_openstack.yaml
749749
oc wait openstack/openstack -n ${OPERATOR_NAMESPACE} --for condition=Ready --timeout=${TIMEOUT}
750750

751751
.PHONY: openstack_cleanup

0 commit comments

Comments
 (0)