From 1e27cdb064944b84fa5351a7403588dff864c320 Mon Sep 17 00:00:00 2001 From: joshuasimon-taulia Date: Wed, 11 Jan 2023 13:35:41 -0800 Subject: [PATCH] feat: handle git token and hmac secrets when argocd enabled --- charts/jxgh/lighthouse/values.yaml.gotmpl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/charts/jxgh/lighthouse/values.yaml.gotmpl b/charts/jxgh/lighthouse/values.yaml.gotmpl index dbaa854dba..80865c3b1a 100644 --- a/charts/jxgh/lighthouse/values.yaml.gotmpl +++ b/charts/jxgh/lighthouse/values.yaml.gotmpl @@ -12,7 +12,7 @@ git: service: name: hook - + replicaCount: 2 {{- if eq .Values.jxRequirements.cluster.provider "gke" }} @@ -62,6 +62,14 @@ vault: hmacTokenEnabled: false {{- end }} +{{- if hasKey .Values.jxRequirements "argocd" }} +{{- if .Values.jxRequirements.argocd.enabled }} +# avoid creating new secrets. bypasses 'jx secret' steps in Makefile +hmacSecretName: lighthouse-hmac-token +oauthSecretName: lighthouse-oauth-token +{{- end }} +{{- end }} + {{- if hasKey .Values.jxRequirements.cluster "clusterName" }} clusterName: "{{ .Values.jxRequirements.cluster.clusterName }}" {{- end }}