feat(argo-cd): Make redis secret initialization optional (#2713)

* Make redis secret initialization optional

Signed-off-by: michaelvl <mvl.gh@network42.dk>

* Remove artifacthub.io/changes from previous change

Signed-off-by: michaelvl <mvl.gh@network42.dk>

---------

Signed-off-by: michaelvl <mvl.gh@network42.dk>
This commit is contained in:
Michael Vittrup Larsen 2024-05-23 14:36:49 +02:00 committed by GitHub
parent e6776415a4
commit 728b6e7326
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 9 additions and 6 deletions

View file

@ -1,4 +1,4 @@
{{- if not .Values.externalRedis.host }}
{{- if and .Values.redisSecretInit.enabled (not .Values.externalRedis.host) }}
apiVersion: batch/v1
kind: Job
metadata:

View file

@ -1,4 +1,4 @@
{{- if not .Values.externalRedis.host }}
{{- if and .Values.redisSecretInit.enabled (not .Values.externalRedis.host) }}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:

View file

@ -1,4 +1,4 @@
{{- if not .Values.externalRedis.host }}
{{- if and .Values.redisSecretInit.enabled (not .Values.externalRedis.host) }}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:

View file

@ -1,4 +1,4 @@
{{- if not .Values.externalRedis.host }}
{{- if and .Values.redisSecretInit.enabled (not .Values.externalRedis.host) }}
apiVersion: v1
kind: ServiceAccount
automountServiceAccountToken: {{ .Values.redisSecretInit.serviceAccount.automountServiceAccountToken }}