Skip to content

Commit

Permalink
chore(rbac): add olm-specific ClusterRole
Browse files Browse the repository at this point in the history
  • Loading branch information
ecordell committed Sep 5, 2018
1 parent 7b64206 commit 4778f13
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
10 changes: 10 additions & 0 deletions deploy/chart/templates/00-olm-operator.clusterrole.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: {{ .Values.rbacApiVersion }}/v1
kind: ClusterRole
metadata:
name: system:controller:operator-lifecycle-manager
rules:
- apiGroups: ["*"]
resources: ["*"]
verbs: ["*"]
- nonResourceURLs: ["*"]
verbs: ["*"]
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ apiVersion: v1
metadata:
name: olm-operator-serviceaccount
namespace: {{ .Values.namespace }}
imagePullSecrets:
- name: coreos-pull-secret
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ kind: ClusterRoleBinding
metadata:
name: olm-operator-binding-{{ .Values.namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
apiGroup: {{ .Values.rbacApiVersion }}
kind: ClusterRole
name: cluster-admin
name: system:controller:operator-lifecycle-manager
subjects:
- kind: ServiceAccount
name: olm-operator-serviceaccount
Expand Down

0 comments on commit 4778f13

Please sign in to comment.