Skip to content

.Values.image.tag does not override the image tag completely #82

@joshdcu

Description

@joshdcu

The Helm chart allows us to override the image used by setting .Values.image.repository and .Values.image.tag accordingly. However, it always adds a v prefix to the tag which may not always be compatible, especially if users are using custom tags. Looking at the manifests where .Values.image is referenced, I see a Helm template is used:

image: "{{ .Values.image.repository }}:{{ template "github_packages_image_version" . }}"

and

image: "{{ .Values.image.repository }}:{{ template "github_packages_image_version" . }}"

It is the Helm template which is adding the undesired v prefix:

{{/*
Image version definition using Github Packages format ('v' prefix);
*/}}
{{- define "github_packages_image_version" -}}
{{- printf "v%s" (default .Chart.AppVersion .Values.image.tag) }}
{{- end -}}

Can we please allow the .Values.image.tag to completely override the image tag? That would offer more flexibility to users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions