We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46d1efc commit a3f2626Copy full SHA for a3f2626
roles/openshift_hosted/tasks/router/router.yml
@@ -37,6 +37,15 @@
37
resource_name: hostnetwork
38
with_items: "{{ openshift_hosted_routers }}"
39
40
+- name: Set additional permissions for router service account
41
+ oc_adm_policy_user:
42
+ user: "system:serviceaccount:{{ item.namespace }}:{{ item.serviceaccount }}"
43
+ namespace: "{{ item.namespace }}"
44
+ resource_kind: cluster-role
45
+ resource_name: cluster-reader
46
+ when: item.namespace == 'default'
47
+ with_items: "{{ openshift_hosted_routers }}"
48
+
49
- name: Create OpenShift router
50
oc_adm_router:
51
name: "{{ item.name }}"
0 commit comments