Skip to content

Commit

Permalink
Fixing rbac issues reported in #64
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Peacock <joe_peacock@intuit.com>
  • Loading branch information
Joe Peacock committed Feb 12, 2020
1 parent 31e6495 commit 02f75ad
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
14 changes: 14 additions & 0 deletions install/admiral/base/role_bindings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,17 @@ subjects:
namespace: admiral

---

apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: admiral-configmap-role-binding
namespace: admiral
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: admiral-configmap-role
subjects:
- kind: ServiceAccount
name: admiral
namespace: admiral
14 changes: 13 additions & 1 deletion install/admiral/base/roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,16 @@ metadata:
rules:
- apiGroups: [""]
resources: ["secrets"]
verbs: ["get", "watch", "list"]
verbs: ["get", "watch", "list"]

---

apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: admiral-configmap-role
namespace: admiral
rules:
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get", "update", "create"]
1 change: 0 additions & 1 deletion install/admiral/base/service_accounts.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@


---
apiVersion: v1
kind: ServiceAccount
Expand Down

0 comments on commit 02f75ad

Please sign in to comment.