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:
@@ -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
|
||||
*/}}
|
||||
|
||||
Reference in New Issue
Block a user