@@ -30,59 +30,13 @@ Running Test Operator Using the Operator Lifecycle Manager (OLM)
30
30
----------------------------------------------------------------
31
31
32
32
The first option of how to start the operator is by running the pre-built operator image
33
- stored on
34
- `quay.io <https://quay.io/repository/openstack-k8s-operators/test-operator >`_
33
+ stored in the `openstack-operator-index <https://quay.io/repository/openstack-k8s-operators/openstack-operator-index >`_
35
34
using the OLM.
36
35
37
- .. note ::
38
-
39
- Currently, the `test-operator <https://quay.io/openstack-k8s-operators/test-operator >`_ is not
40
- part of the `openstack-operator-index <https://quay.io/openstack-k8s-operators/
41
- openstack-operator-index> `_; therefore, a new catalog source which uses `test-operator-index
42
- <https://quay.io/openstack-k8s-operators/test-operator-index> `_ image needs to be created
43
- in advance.
44
-
45
- Follow these steps to install the operator in the OpenStack project.
46
-
47
- 1. Create :code: `OperatorGroup `
48
-
49
- .. code-block :: yaml
50
-
51
- cat operator-group.yaml
52
- ---
53
- apiVersion : operators.coreos.com/v1
54
- kind : OperatorGroup
55
- metadata :
56
- name : openstack-operatorgroup
57
- namespace : openstack
58
- spec :
59
- targetNamespaces :
60
- - openstack
61
-
62
- .. code-block :: bash
63
-
64
- oc apply -f operator-group.yaml
36
+ Follow these steps to install the operator in the :code: `openstack-operators `
37
+ project.
65
38
66
- 2. Create :code: `CatalogSource `
67
-
68
- .. code-block :: yaml
69
-
70
- cat catalog-source.yaml
71
- ---
72
- apiVersion : operators.coreos.com/v1alpha1
73
- kind : CatalogSource
74
- metadata :
75
- name : test-operator-catalog
76
- namespace : openstack
77
- spec :
78
- sourceType : grpc
79
- image : quay.io/openstack-k8s-operators/test-operator-index:latest
80
-
81
- .. code-block :: bash
82
-
83
- oc apply -f catalog-source.yaml
84
-
85
- 3. Create :code: `Subscription `
39
+ 1. Create :code: `Subscription `
86
40
87
41
.. code-block :: yaml
88
42
@@ -92,24 +46,28 @@ Follow these steps to install the operator in the OpenStack project.
92
46
kind : Subscription
93
47
metadata :
94
48
name : test-operator
95
- namespace : openstack
49
+ namespace : openstack-operators
96
50
spec :
97
51
name : test-operator
98
- source : test-operator-catalog
99
- sourceNamespace : openstack
52
+ source : openstack-operator-index
53
+ sourceNamespace : openstack-operators
54
+
55
+ 2. Apply :code: `subscription.yaml `
100
56
101
57
.. code-block :: bash
102
58
103
59
oc apply -f subscription.yaml
104
60
105
- 4 . Wait for the :code: `test-operator-controller-manager ` pod to successfully
61
+ 3 . Wait for the :code: `test-operator-controller-manager ` pod to successfully
106
62
spawn. Once you see the pod running, you can start communicating with the
107
- operator using the :code: `Tempest ` resource defined in the
108
- :ref: `executing-tests ` section.
63
+ operator using the CRs understood by the test-operator (see
64
+ :ref: `custom-resources-used-by-the-test-operator `). For more information
65
+ about how to run tests via the test-operator, refer to the :ref: `executing-tests `
66
+ section.
109
67
110
68
.. code-block :: bash
111
69
112
- oc get pods
70
+ oc get pods -n openstack-operators
113
71
...
114
72
test-operator-controller-manager-6c9994847c-6jwn5 2/2 Running 0 20s
115
73
...
0 commit comments