diff --git a/chart/openfaas/templates/controller-rbac.yaml b/chart/openfaas/templates/controller-rbac.yaml index 6d1120527..6eb96929b 100644 --- a/chart/openfaas/templates/controller-rbac.yaml +++ b/chart/openfaas/templates/controller-rbac.yaml @@ -25,7 +25,6 @@ metadata: heritage: {{ .Release.Service }} release: {{ .Release.Name }} name: {{ .Release.Name }}-controller - namespace: {{ $functionNs | quote }} rules: - apiGroups: - "" @@ -217,6 +216,12 @@ rules: - "get" - "list" - "watch" + - apiGroups: + - "" + resources: + - secrets + verbs: + - get --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding diff --git a/chart/openfaas/templates/operator-rbac.yaml b/chart/openfaas/templates/operator-rbac.yaml index a9c2ab375..2d820da2d 100644 --- a/chart/openfaas/templates/operator-rbac.yaml +++ b/chart/openfaas/templates/operator-rbac.yaml @@ -120,7 +120,6 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: {{ .Release.Name }}-operator-controller - namespace: {{ .Release.Namespace | quote }} labels: app: {{ template "openfaas.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version }}