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

kustomize build changing string values to integer #3031

Closed
sahil-sawhney opened this issue Sep 22, 2020 · 6 comments
Closed

kustomize build changing string values to integer #3031

sahil-sawhney opened this issue Sep 22, 2020 · 6 comments

Comments

@sahil-sawhney
Copy link

I have one of my yaml in overlays to include environment variables as follows
COUNT: "10"
Now when I do a Kustomize build, above content transforms to this
COUNT: 10
Now when I try to do a kubectl apply to this, it reports an error
The pod is invalid: spec.containers.env.COUNT: Invalid value: "integer": spec.containers.env.COUNT in body must be of type string: "integer"

@Shell32-Natsu
Copy link
Contributor

Please provide your kustomization.yaml file and other related files so we can reproduce it.

@sahil-sawhney
Copy link
Author

@Shell32-Natsu I got my issue resolved. It was a problem caused by envsubst. Thanks for checking

@Shell32-Natsu
Copy link
Contributor

Great to hear that!

/close

@k8s-ci-robot
Copy link
Contributor

@Shell32-Natsu: Closing this issue.

In response to this:

Great to hear that!

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@shshe
Copy link

shshe commented Jan 11, 2021

@sahil-sawhney We're seeing this issue on Ubuntu 20.04.1 LTS where integers in environment variables were quoted in kustomization.yaml but not quoted in the generated manifests after running kustomize. What did you do to resolve this issue with envsubst? Thanks!

@Shell32-Natsu
Copy link
Contributor

@shshe Please take a look at #3412

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

4 participants