Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create rolebinding for .Release.Namespace implicitly #643

Merged
merged 5 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion keda/templates/manager/clusterrolebindings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ subjects:
name: {{ (.Values.serviceAccount.operator).name | default .Values.serviceAccount.name }}
namespace: {{ .Release.Namespace }}
{{- else }}
{{- range ( split "," .Values.watchNamespace ) }}
{{- $namespaces := append (splitList "," .Values.watchNamespace) .Release.Namespace -}}
{{- range $namespaces }}
---
# Role binding for namespace '{{ . }}'
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
4 changes: 4 additions & 0 deletions keda/templates/manager/minimal-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ rules:
verbs:
- create
- update
{{- if .Values.permissions.operator.restrict.secret }}
- list
- watch
{{- end }}
zroubalik marked this conversation as resolved.
Show resolved Hide resolved
{{- end }}
---
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
Loading