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
Quotes are dropped from namespace in kustomization resource #4386
Comments
@shanalily: This issue is currently awaiting triage. SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the The 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. |
I realized there are similar issues with bool "true" and "false" values in some cases. Example with bool map key: kustomization.yaml
resources.yaml
Expected output
Actual output
Example with bool map key: kustomization.yaml
resources.yaml
Expected output
Actual output
output of
Kustomize version {Version:kustomize/v4.4.1 GitCommit:b2d65ddc98e09187a8e38adc27c30bab078c1dbf BuildDate:2021-11-11T23:27:14Z GoOs:darwin GoArch:amd64} kubectl version:
Platform macOS Additional context |
When adding 'namespace' with only numeric characters to kustomization resource to be applied to all resources, quotes are dropped somewhere during the namespace transformation and the k8s resource becomes invalid when trying to apply.
This works fine in an older versions of kustomize where enable_kyaml was false by default.
Similar to #3412 and #3440 but for namespace field, so the kyaml fix is probably similar.
Example:
kustomization.yaml
resources.yaml
Expected output
Actual output
Kustomize version
{Version:kustomize/v4.4.1 GitCommit:b2d65ddc98e09187a8e38adc27c30bab078c1dbf BuildDate:2021-11-11T23:27:14Z GoOs:darwin GoArch:amd64}
Platform
macOS
Additional context
The text was updated successfully, but these errors were encountered: