Skip to content

Commit 71311cc

Browse files
Merge pull request #963 from dprince/openstack_init
Add openstack_init target
2 parents 189e3dd + 7cdfc5f commit 71311cc

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,10 +738,18 @@ openstack_wait: openstack ## waits openstack CSV to succeed.
738738
$(eval $(call vars,$@,openstack))
739739
timeout $(TIMEOUT) bash -c 'until $$(oc get csv -l operators.coreos.com/openstack-operator.openstack-operators -n ${OPERATOR_NAMESPACE} | grep -q Succeeded); do sleep 1; done'
740740

741+
742+
# creates the new initialization resource for our operators
743+
.PHONY: openstack_init
744+
openstack_init: openstack_wait openstack_deploy_cleanup openstack_repo
745+
oc create -f ${OPERATOR_BASE_DIR}/openstack-operator/config/samples/operator_v1beta1_openstack.yaml
746+
oc wait openstack/openstack -n ${OPERATOR_NAMESPACE} --for condition=Ready --timeout=${TIMEOUT}
747+
741748
.PHONY: openstack_cleanup
742749
openstack_cleanup: operator_namespace## deletes the operator, but does not cleanup the service resources
743750
$(eval $(call vars,$@,openstack))
744751
${CLEANUP_DIR_CMD} ${OPERATOR_DIR}
752+
if oc get openstack &>/dev/null; then oc delete --ignore-not-found=true openstack/openstack; fi
745753
oc delete subscription --all=true
746754
oc delete csv --all=true
747755
oc delete catalogsource --all=true

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ install using the redhat-marketplace
9999
REDHAT_OPERATORS=true make openstack
100100
```
101101

102+
* create the initialization resource (this deploys the operators)
103+
```bash
104+
make openstack_init
105+
```
106+
102107
**Note** this will also run the openstack_prep target, which if NETWORK_ISOLATION == true will install nmstate and metallb operator, configure the secondary interface of the crc VM via nncp, creates the network-attachment-definitions for datacentre, internalapi, storage and tenant network. Also the metallb l2advertisement and the ipaddresspools get created.
103108

104109
The following NADs with ip ranges get configured:

0 commit comments

Comments
 (0)