Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion chart/templates/_helpers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,14 @@ If release name contains chart name it will be used as a full name.
{{- end }}

{{- define "pod_template_image" -}}
{{- printf "%s:%s" (.Values.images.pod_template.repository | default .Values.defaultAirflowRepository) (.Values.images.pod_template.tag | default .Values.defaultAirflowTag) }}
{{- $repository := .Values.images.pod_template.repository | default .Values.defaultAirflowRepository -}}
{{- $tag := .Values.images.pod_template.tag | default .Values.defaultAirflowTag -}}
{{- $digest := .Values.images.pod_template.digest | default .Values.defaultAirflowDigest -}}
{{- if $digest }}
{{- printf "%s@%s" $repository $digest -}}
{{- else }}
{{- printf "%s:%s" $repository $tag -}}
{{- end }}
Comment on lines +342 to +346
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that if we already fix this, we should also check if there's a tag, and if both (digest and tag) are missing, it would raise an error.

{{- end }}

{{/* This helper is used for airflow containers that do not need the users code */}}
Expand Down