Skip to content

Commit

Permalink
feat: handle git token and hmac secrets when argocd enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
roulettedares committed Jan 11, 2023
1 parent abef2c6 commit 1e27cdb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion charts/jxgh/lighthouse/values.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ git:

service:
name: hook

replicaCount: 2

{{- if eq .Values.jxRequirements.cluster.provider "gke" }}
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 1e27cdb

Please sign in to comment.