Support Nested Spire with External Agent (#117)

This commit is contained in:
kfox1111
2023-08-16 16:35:41 +02:00
committed by GitHub
parent f40743d484
commit ae8941c49d
18 changed files with 383 additions and 2 deletions
@@ -91,7 +91,9 @@ Create the name of the service account to use
{{- end }}
{{- define "spire-agent.server-address" }}
{{- if .Values.server.address }}
{{- if and (ne (len (dig "spire" "upstreamSpireAddress" "" .Values.global)) 0) .Values.upstream }}
{{- print .Values.global.spire.upstreamSpireAddress }}
{{- else if .Values.server.address }}
{{- .Values.server.address }}
{{- else }}
{{ .Release.Name }}-server.{{ include "spire-agent.server.namespace" . }}