Tornjak global image fix (#228)

This pr updates the Tornjak branch to work with the merged global
registry configuration support.

Signed-off-by: Mariusz Sabath <[email protected]>
Signed-off-by: kfox1111 <[email protected]>
This commit is contained in:
kfox1111
2023-05-16 19:31:38 +02:00
committed by Marco Franssen
parent 5e827ee45e
commit 1675997748
4 changed files with 3 additions and 19 deletions
@@ -80,22 +80,6 @@ Create the name of the service account to use
{{- end }}
{{- end }}
{{/*
Create an image name
*/}}
{{- define "tornjak-frontend.image" -}}
{{- if eq (substr 0 7 .image.version) "sha256:" -}}
{{- printf "%s/%s@%s" .image.registry .image.repository .image.version -}}
{{- else if .appVersion -}}
{{- printf "%s/%s:%s" .image.registry .image.repository (default .appVersion .image.version) -}}
{{- else if
.Values.tornjakFrontend.image.version -}}
{{- printf "%s/%s:%s" .Values.tornjakFrontend.image.registry .Values.tornjakFrontend.image.repository .Values.tornjakFrontend.image.version -}}
{{- else -}}
{{- printf "%s/%s" .Values.tornjakFrontend.image.registry .Values.tornjakFrontend.image.repository -}}
{{- end -}}
{{- end }}
{{/*
Create URL for accessing Tornjak APIs
*/}}