-
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
patch file with comments only not supported anymore in 5.2.1 (was supported in 5.1.1) #5487
Comments
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
/remove-lifecycle rotten |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
Still an open issue in Kustomize version 5.4.3 |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
Bumping this up, as it shouldn't fail IMHO |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". 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-sigs/prow repository. |
/remove-lifecycle rotten |
/reopen |
@jchanam: You can't reopen an issue/PR unless you authored it or you are a collaborator. 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-sigs/prow repository. |
Reopening as we have a PR open to fix this and it was closed due to inactivity. /reopen |
@stormqueen1990: Reopened 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-sigs/prow repository. |
/lifecycle frozen |
/triage accepted |
What happened?
I have multiple patches in a directory, some of them containing only comments (
# put here your patches for the foo environment
) to serve as a guidance for end users to know what they could put insideIn kustomize 5.1.1, applying all the patches was not an issue.
Since kustomize 5.2.1, patched files with only comment in it are not supported anymore and kustomize throws an error :
illegally qualifies as both an SM and JSON patch
If I remove the comment and leave the file empty, it is working again.
What did you expect to happen?
I expected patches with only comment to be supported as it was in the previous version.
I expected no regression introduced by new version of kustomize.
How can we reproduce it (as minimally and precisely as possible)?
worked in kustomize 5.1.1 :
error in kustomize 5.2.1 and above (same result with kustomize 5.3.0) :
Expected output
the content of the resource
Actual output
Kustomize version
5.2.1
Operating system
Linux
The text was updated successfully, but these errors were encountered: