Skip to content

Commit

Permalink
Merge pull request #987 from abays/osp_init_idempotency
Browse files Browse the repository at this point in the history
Make 'openstack_init' target be idempotent
  • Loading branch information
openshift-merge-bot[bot] authored Dec 19, 2024
2 parents 7b6c92f + ee15226 commit 2d1dcf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -744,8 +744,8 @@ openstack_wait: ## waits openstack CSV to succeed.
# creates the new initialization resource for our operators
.PHONY: openstack_init
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
bash -c 'test -f ${OPERATOR_BASE_DIR}/openstack-operator/config/samples/operator_v1beta1_openstack.yaml || make openstack_repo'
oc apply -f ${OPERATOR_BASE_DIR}/openstack-operator/config/samples/operator_v1beta1_openstack.yaml
oc wait openstack/openstack -n ${OPERATOR_NAMESPACE} --for condition=Ready --timeout=${TIMEOUT}

.PHONY: openstack_cleanup
Expand Down

0 comments on commit 2d1dcf2

Please sign in to comment.