Skip to content

Commit 637980f

Browse files
committed
Support new OpenStack initialization resource for RHOSO install
1 parent d74222b commit 637980f

File tree

4 files changed

+34
-5
lines changed

4 files changed

+34
-5
lines changed

examples/common/README.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@ Create the CRs.
1616
```
1717
oc apply -k examples/common/olm/
1818
```
19-
Watch the OpenStack operator pods start.
20-
```
21-
oc get pods -w -n openstack-operators
22-
```
2319
The following commands can be used to confirm that each step of this
2420
procedure is complete.
2521
```
26-
while ! (oc get pod --no-headers=true -l name=cert-manager-operator -n cert-manager-operator| grep "cert-manager-operator"); do sleep 10; done
22+
while ! (oc get pod --no-headers=true -l openstack.org/operator-name=openstack -n openstack-operators | grep "controller-operator"); do sleep 10; done
23+
oc wait pod -n openstack-operators --for condition=Ready -l openstack.org/operator-name=openstack --timeout=300s
24+
while ! (oc get pod --no-headers=true -l name=cert-manager-operator -n cert-manager-operator | grep "cert-manager-operator"); do sleep 10; done
2725
oc wait pod -n cert-manager-operator --for condition=Ready -l name=cert-manager-operator --timeout=300s
2826
while ! (oc get pod --no-headers=true -l app=cainjector -n cert-manager | grep "cert-manager-cainjector"); do sleep 10; done
2927
oc wait pod -n cert-manager -l app=cainjector --for condition=Ready --timeout=300s
@@ -76,3 +74,19 @@ oc wait pod -n openshift-nmstate -l component=kubernetes-nmstate-handler --for c
7674
timeout 300 bash -c "while ! (oc get deployments/nmstate-webhook -n openshift-nmstate); do sleep 10; done"
7775
oc wait deployments/nmstate-webhook -n openshift-nmstate --for condition=Available --timeout=300s
7876
```
77+
78+
# OpenStack
79+
80+
Observe CRs which will be generated.
81+
```
82+
kustomize build examples/common/openstack/
83+
```
84+
Create the CRs.
85+
```
86+
oc apply -k examples/common/openstack/
87+
```
88+
The following command can be used to confirm that each step of this
89+
procedure is complete.
90+
```
91+
oc wait -n openstack-operators openstack openstack --for condition=Ready --timeout=300s
92+
```
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
components:
3+
- ../../../lib/openstack

lib/openstack/kustomization.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1alpha1
3+
kind: Component
4+
5+
resources:
6+
- openstack_deploy.yaml
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
apiVersion: operator.openstack.org/v1beta1
3+
kind: OpenStack
4+
metadata:
5+
name: openstack
6+
namespace: openstack-operators

0 commit comments

Comments
 (0)