summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOpenShift Bot <dmcphers+openshiftbot@redhat.com>2017-03-15 09:12:41 -0400
committerGitHub <noreply@github.com>2017-03-15 09:12:41 -0400
commit15130f01c9c80b67528d4e76b237822921a0a0c9 (patch)
tree3ca69c635d7b5d26e28ab72c29af32753cc8ad2e
parent4c6d052e913c8a033c0198f4199b0f37f697bbe7 (diff)
parenta3f2626530456e9eae9492758900a30e8d641b8b (diff)
downloadopenshift-15130f01c9c80b67528d4e76b237822921a0a0c9.tar.gz
openshift-15130f01c9c80b67528d4e76b237822921a0a0c9.tar.bz2
openshift-15130f01c9c80b67528d4e76b237822921a0a0c9.tar.xz
openshift-15130f01c9c80b67528d4e76b237822921a0a0c9.zip
Merge pull request #3650 from mtnbikenc/fix-router
Merged by openshift-bot
-rw-r--r--roles/openshift_hosted/tasks/router/router.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/openshift_hosted/tasks/router/router.yml b/roles/openshift_hosted/tasks/router/router.yml
index 969fb27a9..0861b9ec2 100644
--- a/roles/openshift_hosted/tasks/router/router.yml
+++ b/roles/openshift_hosted/tasks/router/router.yml
@@ -37,6 +37,15 @@
resource_name: hostnetwork
with_items: "{{ openshift_hosted_routers }}"
+- name: Set additional permissions for router service account
+ oc_adm_policy_user:
+ user: "system:serviceaccount:{{ item.namespace }}:{{ item.serviceaccount }}"
+ namespace: "{{ item.namespace }}"
+ resource_kind: cluster-role
+ resource_name: cluster-reader
+ when: item.namespace == 'default'
+ with_items: "{{ openshift_hosted_routers }}"
+
- name: Create OpenShift router
oc_adm_router:
name: "{{ item.name }}"