File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
common/roles/install_operator/tasks Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 24
24
register : create_sub
25
25
until : create_sub is not failed
26
26
27
+ - name : Approve Manual InstallPlan
28
+ when :
29
+ - create_sub.changed
30
+ - create_sub.result.spec.installPlanApproval == "Manual"
31
+ block :
32
+ - name : Get InstallPlanRef
33
+ kubernetes.core.k8s_info :
34
+ api_version : operators.coreos.com/v1alpha1
35
+ kind : Subscription
36
+ name : " {{ create_sub.result.metadata.name }}"
37
+ namespace : " {{ create_sub.result.metadata.namespace }}"
38
+ register : subscription
39
+ until : subscription.resources[0].status.installPlanRef is defined
40
+ retries : 60
41
+ delay : 10
42
+
43
+ - name : Approve InstallPlan
44
+ kubernetes.core.k8s :
45
+ definition :
46
+ apiVersion : " {{ subscription.resources[0].status.installPlanRef.apiVersion }}"
47
+ kind : " {{ subscription.resources[0].status.installPlanRef.kind }}"
48
+ metadata :
49
+ name : " {{ subscription.resources[0].status.installPlanRef.name }}"
50
+ namespace : " {{ subscription.resources[0].status.installPlanRef.namespace }}"
51
+ spec :
52
+ approved : true
53
+ state : present
54
+ register : k8s_result
55
+ until : k8s_result is not failed
56
+
27
57
- name : Wait for operator to be deployed
28
58
kubernetes.core.k8s_info :
29
59
api_version : operators.coreos.com/v1alpha1
You can’t perform that action at this time.
0 commit comments