-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
WIP: kustomize edit fix command will copy and compare output #3891
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: natasha41575 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
9948ce2
to
b0504b4
Compare
afc5298
to
ab8f7ca
Compare
8ca24c5
to
9c5e9ee
Compare
9c5e9ee
to
bbc737b
Compare
Please pull the golang lint change to it's own PR. |
closing this PR until we have a better solution |
This addresses a small part of #3849.
kustomize edit fix
should compare the new output against the old, and throw an error if they don't match.I was struggling to write a test case in which this throws an error, because I was having trouble thinking of an existing scenario when
kustomize edit fix
wouldn't produce the same output. Some suggestions for potential tests will be helpful, and there will be more tests for failure cases after the next PR, which will convertvars
toreplacements
.ALLOW_MODULE_SPAN
EDIT: There is a lint issue: #3663; and fixed for kyaml by this commit here. The first commit in this PR brought up the same problem, but for the kustomize module. The second commit in this PR fixes it by downgrading golangci-lint for the kustomize module to v1.17.0.