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

imageTags problem #572

Closed
fatihafizoglu opened this issue Nov 22, 2018 · 1 comment
Closed

imageTags problem #572

fatihafizoglu opened this issue Nov 22, 2018 · 1 comment

Comments

@fatihafizoglu
Copy link

Here is a piece of my kustomization.yaml:

imageTags:
  - name: alpine
    newTag: 3.6

When I execute kustomize build I got this error:

Error: json: cannot unmarshal number into Go struct field ImageTag.newTag of type string

Version tags like 5.5.0 or v3.5 won't cause problems but this one causes failure.

@twz123
Copy link
Contributor

twz123 commented Nov 23, 2018

Try to place quotes around the tag name. The tag needs to be a string, but without quotes, YAML will treat this as a number, if it can. 5.5.0 and v3.5 cannot be parsed as a number, while 3.6 can. That's why it fails.

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

2 participants