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 cdd604f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 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,12 @@ vault:
hmacTokenEnabled: false
{{- end }}

{{- if and (hasKey .Values.jxRequirements.cluster "argocd") (.Values.jxRequirements.cluster.argocd.enabled) }}
# avoid creating new secrets. bypasses 'jx secret' steps in Makefile
hmacSecretName: lighthouse-hmac-token
oauthSecretName: lighthouse-oauth-token
{{- end }}

{{- if hasKey .Values.jxRequirements.cluster "clusterName" }}
clusterName: "{{ .Values.jxRequirements.cluster.clusterName }}"
{{- end }}
Expand Down

0 comments on commit cdd604f

Please sign in to comment.