Skip to content

Commit cc3e969

Browse files
committed
Update the README to the new way of developing
1 parent acd9c11 commit cc3e969

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,11 @@ Now, we proceed to run our own telemetry-operator instance:
5252
oc patch openstackcontrolplane openstack-galera-network-isolation --type='json' -p='[{"op": "replace", "path": "/spec/telemetry/enabled", "value":false}]'
5353
```
5454

55-
7.- Remove telemetry-operator from the deployments
55+
7.- Scale down telemetry-operator and openstack-operator
5656
```
57-
oc project openstack-operators
58-
oc delete csv telemetry-operator.v0.0.1
57+
oc patch csv openstack-operator.v0.0.1 --type='json' -p='[{"op": "replace", "path": "/spec/install/spec/deployments/0/spec/replicas", "value":0}]' -n openstack-operators
58+
59+
oc scale deployments/telemetry-operator-controller-manager --replicas 0 -n openstack-operators
5960
```
6061

6162
8.- Deploy custom telemetry-operator version
@@ -65,25 +66,24 @@ NOTE: If you intend to deploy a custom telemetry object *with pre-populated imag
6566
```
6667
cd telemetry-operator
6768
69+
# Only needed if API changed
6870
oc delete -f config/crd/bases/
6971
oc apply -f config/crd/bases/
7072
7173
make manifests generate
7274
OPERATOR_TEMPLATES=$PWD/templates make run-with-webhook
7375
```
7476

75-
7677
9.- Deploy Telemetry
7778

78-
There are two options, either let openstack-operator manage a telemetry object, or disable openstack-operator and manage it yourself.
79+
There are two options, either use the existing OpenStackControlPlane to manage the telemetry object, or manage it yourself.
7980

80-
9a.- To continue running openstack-operator and use a telemetry object under its control, re-enable telemetry in the oscp:
81+
9a.- To use the existing OpenStackControlPlane to manage the telemetry object, re-enable telemetry:
8182
```
8283
oc patch openstackcontrolplane openstack-galera-network-isolation --type='json' -p='[{"op": "replace", "path": "/spec/telemetry/enabled", "value":true}]'
8384
```
84-
9b - To disable openstack-operator and use a custom telemetry object
85+
9b - To use a custom telemetry object
8586
```
86-
oc scale deploy/openstack-operator-controller-manager --replicas=0 -n openstack-operators
8787
oc apply -f config/samples/telemetry_v1beta1_telemetry.yaml
8888
```
8989

0 commit comments

Comments
 (0)