Skip to content

Helm seems to translate all-numeric image tags into scientific notation #3246

Closed

Description

@arschles

I don't yet have concrete repro steps, but it seems that if you pass the helm CLI an 8 digit number in a --set (such as something that git rev-parse --short HEAD might output), it converts it into scientific notation.

This can be problematic if you tag your docker images with shortened git SHAs, because the Docker image tag won't be the same as the one you pass Kubernetes. Additionally, Kubernetes correctly reports the image name invalid

Activity

  1. bacongobbler commented on Dec 11, 2017

    @bacongobbler
    Member

    closing as a duplicate of #1707 and #3001. This is an annoying bug for sure.

  2. arschles commented on Dec 11, 2017

    @arschles
    ContributorAuthor

    Thanks @bacongobbler. FWIW, I simply suffixed the tag with -gitsha, which seems to ensure that the value is treated as a string. I'll post my +1 in #1707 as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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