Skip to content

Commit

Permalink
Fix accidentally merged clusterrolebindings (#1501)
Browse files Browse the repository at this point in the history
  • Loading branch information
absoludity authored Feb 5, 2020
1 parent 5c94484 commit 0283bc4
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions chart/kubeapps/templates/apprepository-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,6 @@ rules:
- jobs
verbs:
- create
---
# Kubeapps can read and watch its own AppRepository resources cluster-wide.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: "kubeapps:controller:apprepository-reader-{{ .Release.Namespace }}"
labels:
app: {{ template "kubeapps.apprepository.fullname" . }}
chart: {{ template "kubeapps.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
rules:
- apiGroups:
- kubeapps.com
resources:
Expand Down Expand Up @@ -73,24 +61,6 @@ subjects:
name: {{ template "kubeapps.apprepository.fullname" . }}
namespace: {{ .Release.Namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: "kubeapps:controller:apprepository-reader-{{ .Release.Namespace }}"
labels:
app: {{ template "kubeapps.apprepository.fullname" . }}
chart: {{ template "kubeapps.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: "kubeapps:controller:apprepository-reader-{{ .Release.Namespace }}"
subjects:
- kind: ServiceAccount
name: {{ template "kubeapps.apprepository.fullname" . }}
namespace: {{ .Release.Namespace }}
---
# Define role, but no binding, so users can be bound to this role
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand Down

0 comments on commit 0283bc4

Please sign in to comment.