Skip to content

Commit 7bb0f8e

Browse files
committed
Wait for webhook service after resource initialization
Adds a wait for webhook service to be created after resources initialization process. Some CI jobs are failing to deploy OpenStack right after openstack_init target.
1 parent 3bb5b13 commit 7bb0f8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,7 @@ openstack_init: openstack_wait
747747
bash -c 'test -f ${OPERATOR_BASE_DIR}/openstack-operator/config/samples/operator_v1beta1_openstack.yaml || make openstack_repo'
748748
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}
750+
timeout ${TIMEOUT} bash -c "while ! (oc get services -n ${OPERATOR_NAMESPACE} | grep -E '^(openstack|openstack-baremetal|infra)-operator-webhook-service' | wc -l | grep -q -e 3); do sleep 5; done"
750751

751752
.PHONY: openstack_cleanup
752753
openstack_cleanup: operator_namespace## deletes the operator, but does not cleanup the service resources

0 commit comments

Comments
 (0)