-
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
"kustomize edit set image" is too opinionated about the formatting and moves comments around #4481
Comments
The Kubernetes project currently lacks enough 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 stale |
/remove-lifecycle stale Hit us today. This hurts our automation and made us revert to YQ instead (which is far from ideal) |
I can reproduce this issue. Same thing happens on v4.5.7 as well. My output is mostly the same, except the second resource is an empty string instead of being removed. Please see below. # some important comment to below file:
resources:
- https://raw.githubusercontent.com/argoproj/argo-cd/v2.2.5/manifests/ha/install.yaml
- ""
images:
- name: argo
newName: argo
newTag: "234"
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization |
/triage accepted If anyone is interested in picking this up, I think one potential solution could be to use kyaml's This probably isn't specific to /help |
@natasha41575: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed 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. |
Thanks @annasong20 for confirming the issue! |
I'm new to contribute this repo. If it is ok, I'll try this issue. |
Is here right place to discuss how I fix this issue? Or should I discuss a question on slack?
For example, break lines in a Yaml file are removed when the Parse was called. Here is a failed test case I added.
Is there a way to avoid above issue? |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
Hi, Today I have also faced this issue. Probably we have similar case, when pipeline triggered by new repo tag has to commit new dockerimage version to separate repository. Also I have found out that this issue has been for a while without sufficient solution.
I have managed to bypass this issue using
ref: |
/assign |
/remove-lifecycle stale |
/lifecycle frozen |
Describe the bug
After running
kustomize edit set image
. The commentsFiles that can reproduce the issue
before
running command
kustomize edit set image argo=argo:234
Expected output
I could also live with this output:
Actual output
Especially the comment has to stay in the line above the resource!
Kustomize version
{Version:kustomize/v4.5.2 GitCommit:9091919699baf1c5a5bf71b32ca73a993e98088b BuildDate:2022-02-09T23:19:28Z GoOs:darwin GoArch:amd64}
The text was updated successfully, but these errors were encountered: