mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 17:07:04 +02:00
Signed-off-by: Christopher Larivière <lariviere.c@gmail.com> Co-authored-by: Christopher Larivière <lariviere.c@gmail.com> Co-authored-by: Markus Reiter <me@reitermark.us>
15 lines
434 B
Smarty
15 lines
434 B
Smarty
{{/*
|
|
Image used by the container.
|
|
*/}}
|
|
{{- define "bjw-s.common.lib.container.field.image" -}}
|
|
{{- $ctx := .ctx -}}
|
|
{{- $rootContext := $ctx.rootContext -}}
|
|
{{- $containerObject := $ctx.containerObject -}}
|
|
|
|
{{- $imageRepo := $containerObject.image.repository -}}
|
|
{{- $imageTag := $containerObject.image.tag -}}
|
|
|
|
{{- if and $imageRepo $imageTag -}}
|
|
{{- printf "%s:%s" $imageRepo $imageTag -}}
|
|
{{- end -}}
|
|
{{- end -}}
|