-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jirka Kremser <[email protected]> Signed-off-by: Jirka Kremser <[email protected]> Co-authored-by: Jan Wozniak <[email protected]>
- Loading branch information
1 parent
3fb8a8d
commit 207bab7
Showing
20 changed files
with
381 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# IDE specific files | ||
.vscode | ||
.idea | ||
*.swp | ||
*.swo | ||
|
||
# Mac | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{{- if .Values.rbac.create }} | ||
{{- if not .Values.watchNamespace }} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
{{- with .Values.additionalAnnotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
labels: | ||
app.kubernetes.io/name: {{ .Values.operator.name }} | ||
{{- include "keda.labels" . | indent 4 }} | ||
name: {{ .Values.operator.name }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: {{ .Values.operator.name }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ (.Values.serviceAccount.operator).name | default .Values.serviceAccount.name }} | ||
namespace: {{ .Release.Namespace }} | ||
{{- else }} | ||
{{- range ( split "," .Values.watchNamespace ) }} | ||
--- | ||
# Role binding for namespace '{{ . }}' | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
{{- with $.Values.additionalAnnotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
labels: | ||
app.kubernetes.io/name: {{ $.Values.operator.name }} | ||
{{- include "keda.labels" $ | indent 4 }} | ||
name: {{ $.Values.operator.name }} | ||
namespace: {{ . | trim }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: {{ $.Values.operator.name }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ ($.Values.serviceAccount.operator).name | default $.Values.serviceAccount.name }} | ||
namespace: {{ $.Release.Namespace }} | ||
--- | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.