-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(argo-cd): Add ServiceAccount for redis (#828)
* Add ability to create ServiceAccount for redis Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> * Use correct default for ServiceAccounts in _helpers.tpl Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> * Bump version and update changelog Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
- Loading branch information
1 parent
1416d5e
commit 62699ff
Showing
5 changed files
with
42 additions
and
7 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
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,15 @@ | ||
{{- if and .Values.redis.enabled .Values.redis.serviceAccount.create }} | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
automountServiceAccountToken: {{ .Values.redis.serviceAccount.automountServiceAccountToken }} | ||
metadata: | ||
name: {{ template "argo-cd.redisServiceAccountName" . }} | ||
{{- if .Values.redis.serviceAccount.annotations }} | ||
annotations: | ||
{{- range $key, $value := .Values.redis.serviceAccount.annotations }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- end }} | ||
{{- end }} | ||
labels: | ||
{{- include "argo-cd.labels" (dict "context" . "component" .Values.redis.name "name" .Values.redis.name) | nindent 4 }} | ||
{{- 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