|
23 | 23 | owner: "{{ ansible_user | default(lookup('env', 'USER')) }}"
|
24 | 24 | group: "{{ ansible_user | default(lookup('env', 'USER')) }}"
|
25 | 25 |
|
26 |
| -- name: Ensure OperatorGroup for the test-operator is present |
27 |
| - kubernetes.core.k8s: |
28 |
| - kubeconfig: "{{ cifmw_openshift_kubeconfig }}" |
29 |
| - api_key: "{{ cifmw_openshift_token | default(omit) }}" |
30 |
| - context: "{{ cifmw_openshift_context | default(omit) }}" |
31 |
| - state: present |
32 |
| - wait: true |
33 |
| - definition: |
34 |
| - apiVersion: operators.coreos.com/v1 |
35 |
| - kind: OperatorGroup |
36 |
| - metadata: |
37 |
| - name: test-operator-operatorgroup |
38 |
| - namespace: "{{ cifmw_test_operator_namespace }}" |
39 |
| - spec: |
40 |
| - targetNamespaces: |
41 |
| - - "{{ cifmw_test_operator_namespace }}" |
42 |
| - when: not cifmw_test_operator_dry_run | bool |
43 |
| - |
44 |
| -- name: Ensure CatalogSource for the test-operator is present |
45 |
| - kubernetes.core.k8s: |
46 |
| - kubeconfig: "{{ cifmw_openshift_kubeconfig }}" |
47 |
| - api_key: "{{ cifmw_openshift_token | default(omit) }}" |
48 |
| - context: "{{ cifmw_openshift_context | default(omit) }}" |
49 |
| - state: present |
50 |
| - wait: true |
51 |
| - definition: |
52 |
| - apiVersion: operators.coreos.com/v1alpha1 |
53 |
| - kind: CatalogSource |
54 |
| - metadata: |
55 |
| - name: test-operator-catalog |
56 |
| - namespace: "{{ cifmw_test_operator_namespace }}" |
57 |
| - spec: |
58 |
| - sourceType: grpc |
59 |
| - image: "{{ cifmw_test_operator_index }}" |
60 |
| - when: not cifmw_test_operator_dry_run | bool |
61 |
| - |
62 |
| -- name: Ensure Subscription for the test-operator is present |
63 |
| - kubernetes.core.k8s: |
64 |
| - kubeconfig: "{{ cifmw_openshift_kubeconfig }}" |
65 |
| - api_key: "{{ cifmw_openshift_token | default(omit)}}" |
66 |
| - context: "{{ cifmw_openshift_context | default(omit)}}" |
67 |
| - state: present |
68 |
| - wait: true |
69 |
| - definition: |
70 |
| - apiVersion: operators.coreos.com/v1alpha1 |
71 |
| - kind: Subscription |
72 |
| - metadata: |
73 |
| - name: test-operator |
74 |
| - namespace: "{{ cifmw_test_operator_namespace }}" |
75 |
| - spec: |
76 |
| - name: test-operator |
77 |
| - source: test-operator-catalog |
78 |
| - sourceNamespace: "{{ cifmw_test_operator_namespace }}" |
79 |
| - config: |
80 |
| - tolerations: "{{ cifmw_test_operator_tolerations | default(omit) }}" |
81 |
| - nodeSelector: "{{ cifmw_test_operator_node_selector | default(omit) }}" |
82 |
| - when: not cifmw_test_operator_dry_run | bool |
83 |
| - |
84 | 26 | - name: Wait until the test-operator csv is present
|
85 | 27 | kubernetes.core.k8s_info:
|
86 | 28 | kubeconfig: "{{ cifmw_openshift_kubeconfig }}"
|
|
0 commit comments