forked from kedacore/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
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 <jiri.kremser@gmail.com> Signed-off-by: Jirka Kremser <535866+jkremser@users.noreply.github.com> Co-authored-by: Jan Wozniak <wozniak.jan@gmail.com>
- Loading branch information
1 parent
3ec46c7
commit 42ce6e9
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.