Skip to content

Commit b1f931e

Browse files
committed
Update openstack_kuttl target to support initialization resource
Jira: OSPRH-11244
1 parent b6028e3 commit b1f931e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2028,6 +2028,9 @@ openstack_kuttl_run: ## runs kuttl tests for the openstack operator, assumes tha
20282028
.PHONY: openstack_kuttl
20292029
openstack_kuttl: export NAMESPACE = ${OPENSTACK_KUTTL_NAMESPACE}
20302030
openstack_kuttl: input deploy_cleanup openstack openstack_deploy_prep ## runs kuttl tests for the openstack operator. Installs openstack operator and cleans up previous deployments before running the tests, cleans up after running the tests.
2031+
# Wait until OLM installs openstack CRDs
2032+
timeout $(TIMEOUT) bash -c "while ! (oc get crd | grep openstack.org); do sleep 1; done"
2033+
bash -c '(oc get crd openstacks.operator.openstack.org && make openstack_init) || true'
20312034
$(eval $(call vars,$@,ansibleee))
20322035
make wait
20332036
$(eval $(call vars,$@,infra))

0 commit comments

Comments
 (0)