feat(argo-cd): Add username support for external redis (#1478)

Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
Signed-off-by: Eugene Lugovtsov <34510252+EugeneLugovtsov@users.noreply.github.com>

Co-authored-by: Eugene Lugovtsov <34510252+EugeneLugovtsov@users.noreply.github.com>
pull/1480/head argo-cd-5.5.1
Petr Drastil 2022-09-21 20:21:12 +02:00 committed by GitHub
parent e9dddd8289
commit 67659d4db0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 6 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: v2.4.12
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
name: argo-cd
version: 5.5.0
version: 5.5.1
home: https://github.com/argoproj/argo-helm
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
keywords:
@ -19,6 +19,4 @@ dependencies:
condition: redis-ha.enabled
annotations:
artifacthub.io/changes: |
- "[Added]: New configuration section `configs.params` for command line parameters"
- "[Deprecated]: Command line arguments in `args` sections"
- "[Deprecated]: Options `logFormat` and `logLevel` for core components"
- "[Added]: REDIS_USERNAME environment variable added automatically based on externalRedis.username"

View File

@ -852,6 +852,7 @@ If you want to use an existing Redis (eg. a managed service from a cloud provide
| externalRedis.password | string | `""` | External Redis password |
| externalRedis.port | int | `6379` | External Redis server port |
| externalRedis.secretAnnotations | object | `{}` | External Redis Secret annotations |
| externalRedis.username | string | `""` | External Redis username |
## ApplicationSet

View File

@ -1,4 +1,4 @@
{{- if and .Values.externalRedis.password (not .Values.externalRedis.existingSecret) }}
{{- if and (or .Values.externalRedis.username .Values.externalRedis.password) (not .Values.externalRedis.existingSecret) }}
apiVersion: v1
kind: Secret
metadata:
@ -13,5 +13,10 @@ metadata:
{{- end }}
type: Opaque
data:
redis-password: {{ .Values.externalRedis.password | b64enc }}
{{- with .Values.externalRedis.username }}
redis-username: {{ . | b64enc }}
{{- end }}
{{- with .Values.externalRedis.password }}
redis-password: {{ . | b64enc }}
{{- end }}
{{- end }}

View File

@ -1089,6 +1089,8 @@ redis-ha:
externalRedis:
# -- External Redis server host
host: ""
# -- External Redis username
username: ""
# -- External Redis password
password: ""
# -- External Redis server port