-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Can not add any comment in .yaml #3778
Comments
I'm hitting the same error, but only when the comment contains a non ascii unicode character like 'ä'.
if the unicode char appears in a non-comment there is no similar error:
This issue also affects the kustomize bundled in the most recent kubectl 1.21.0
|
This issue is in go-yaml library and we need to update it. #3789 does this and this should be fixed after it. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
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. |
Describe the bug
Can not add a comment in my .yaml
Trying to use kustomize with a .yaml using a comment.
Version 3.8.10 works perfectly
Version 3.9.3 throw yaml: invalid trailing UTF-8 octet
Files that can reproduce the issue
kustomization.yaml
ingress.yaml
Expected output
Actual output
Error: map[string]interface {}{"apiVersion":"networking.k8s.io/v1beta1", "kind":"Ingress", "metadata":map[string]interface {}{"annotations":map[string]interface {}{"cert-manager.io/cluster-issuer":"letsencrypt-prod", "kubernetes.io/ingress.class":"nginx", "nginx.ingress.kubernetes.io/force-ssl-redirect":"true"}, "name":"ingress-intelipoint", "namespace":"default"}, "spec":map[string]interface {}{"rules":[]interface {}{map[string]interface {}{"host":interface {}(nil), "http":map[string]interface {}{"paths":[]interface {}{map[string]interface {}{"backend":map[string]interface {}{"serviceName":"intelipoint-api", "servicePort":80}}}}}}}}: yaml: invalid trailing UTF-8 octet
Kustomize version
{Version:kustomize/v3.9.3 GitCommit:1ae8303bdc9372bc7c15942df6e9cf5d67fdba1a BuildDate:2021-02-07T17:02:13Z GoOs:linux GoArch:amd64}
Platform
Ubuntu 18.04.5 LTS
Edit: work by using
kustomize build . --enable_kyaml=false
The text was updated successfully, but these errors were encountered: