Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm is converting my git tag to exponential form #2357

Closed
owenmorgan opened this issue Apr 29, 2017 · 10 comments
Closed

Helm is converting my git tag to exponential form #2357

owenmorgan opened this issue Apr 29, 2017 · 10 comments

Comments

@owenmorgan
Copy link

Using the git hash in my charts, and passing it as a cli argument, its messing up my tag in the rendered template.

Helm v2.3.0

Deployment.yml

..
containers:
        - name: "{{.Values.image.name}}"
          image: "{{.Values.image.registry}}/{{.Values.image.name}}:{{.Values.image.tag}}"

CLI
helm upgrade --dry-run --debug --install --wait test --values values-UAT.yaml --set image.tag=9765483 .

USER-SUPPLIED VALUES:

image:
     tag: 9765483

COMPUTED VALUES:

image:
  tag: 9.765483e+06
@yuvipanda
Copy link
Contributor

When I ran into this (I was specifying values inside a yaml file), putting quotes around them solved it for me.

@owenmorgan
Copy link
Author

thanks. tried quotes in the command line and still see the issue.

helm upgrade --dry-run --debug --install --wait test --values values-UAT.yaml --set image.tag="9765483" .

COMPUTED VALUES:
   tag: 9.765483e+06

@databus23
Copy link
Contributor

Duplicate of #1707

@michelleN michelleN added the bug label May 3, 2017
@michelleN
Copy link
Member

yeah that's strange. we'll need to look into this.

@michelleN michelleN added this to the Upcoming - Minor milestone May 3, 2017
@wieslaw-gat
Copy link

Also experiencing this & no workaround from the related issues seems to work.

@owenmorgan
Copy link
Author

hello, any update on this?

@bacongobbler
Copy link
Member

Can you try --set image.tag=\"9765483\"? The --set parser takes quoted values as the value, so you might need to escape it in order to quote them on the command line.

Seems to work for me:

><> helm template chart/draftd/ --set image.tag=\"8675309\" | grep 675
        image: "microsoft/draft:"8675309""
><> helm template chart/draftd/ --set image.tag="8675309" | grep 675
        image: "microsoft/draft:8.675309e+06"

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle stale

@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten
/remove-lifecycle stale

@bacongobbler
Copy link
Member

closing as a duplicate of #1707 as previously pointed out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants