Skip to content

Commit

Permalink
Allow ConfigMap writes for operator for leaderelection
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Oct 17, 2023
1 parent dbc2aae commit 0d729f5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions chart/openfaas/templates/operator-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ rules:
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get", "create"]
{{- if .Values.operator.leaderElection.enabled }}
- apiGroups: [""]
resources: ["configmaps"]
verbs: [ "update", "patch", "delete"]
{{- end }}
- apiGroups: ["apps", "extensions"]
resources: ["deployments"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
Expand Down Expand Up @@ -153,6 +158,11 @@ rules:
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get", "create"]
{{- if .Values.operator.leaderElection.enabled }}
- apiGroups: [""]
resources: ["configmaps"]
verbs: [ "update", "patch", "delete"]
{{- end }}
# TODO: AE - remove endpoints from RBAC now that operator uses EndpointSlices
- apiGroups: [""]
resources: ["pods", "pods/log", "namespaces", "endpoints"]
Expand Down

0 comments on commit 0d729f5

Please sign in to comment.