Skip to content

Commit

Permalink
Enable the controller RBAC to read secrets within its namespace
Browse files Browse the repository at this point in the history
In order to enable the controller to read licenses etc upon
start-up.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Nov 7, 2023
1 parent e5bbe43 commit 5be95ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 6 additions & 1 deletion chart/openfaas/templates/controller-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ metadata:
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
name: {{ .Release.Name }}-controller
namespace: {{ $functionNs | quote }}
rules:
- apiGroups:
- ""
Expand Down Expand Up @@ -217,6 +216,12 @@ rules:
- "get"
- "list"
- "watch"
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down
1 change: 0 additions & 1 deletion chart/openfaas/templates/operator-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 5be95ca

Please sign in to comment.