Fix agent connectivity if deployed with different name

e.g. if deploying with spire-65de556ac

Signed-off-by: Marco Franssen <[email protected]>
Signed-off-by: Marco Franssen <[email protected]>
This commit is contained in:
Marco Franssen
2023-02-18 13:04:12 +01:00
committed by Marco Franssen
parent 9921d1df40
commit 016e8336d0
6 changed files with 7 additions and 5 deletions
@@ -72,3 +72,7 @@ Create the name of the service account to use
{{- printf "%s/%s" .image.registry .image.repository -}}
{{- end -}}
{{- end }}
{{- define "spire-server-service" -}}
{{ include "spire-agent.fullname" . | trimSuffix "-agent" }}-server
{{- end }}