Skip to content

Commit

Permalink
Merge pull request #10 from containerum/develop
Browse files Browse the repository at this point in the history
Remove cluster-role
  • Loading branch information
kfeofantov committed Jul 24, 2018
2 parents 3134fab + 2b14f71 commit e9527f3
Showing 1 changed file with 1 addition and 47 deletions.
48 changes: 1 addition & 47 deletions charts/kube/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,52 +11,6 @@ metadata:

---

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{.Release.Name}}
labels:
app: {{ template "name" . }}
chart: {{ template "chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
rules:
-
apiGroups:
- ""
- apps
- autoscaling
- batch
- extensions
- policy
- rbac.authorization.k8s.io
resources:
- componentstatuses
- configmaps
- daemonsets
- deployments
- events
- endpoints
- horizontalpodautoscalers
- ingress
- jobs
- limitranges
- namespaces
- nodes
- pods
- persistentvolumes
- persistentvolumeclaims
- resourcequotas
- replicasets
- replicationcontrollers
- serviceaccounts
- services
verbs: ["*"]
- nonResourceURLs: ["*"]
verbs: ["*"]

---

kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand All @@ -73,5 +27,5 @@ subjects:
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{.Release.Name}}
name: cluster-admin
{{ end }}

0 comments on commit e9527f3

Please sign in to comment.