-
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
patches
should accept a patch file with multiple patches
#5049
Comments
Maybe this is not documented properly, but you can already do this by not providing a target and it will use the GVKN of the patch to find the target. Here is an example I tried:
Running Your second point, that there should be able to be multiple patches in a single file, is valid IMO, and I don't see a strong reason why we shouldn't allow that. @KnVerey do you have any concerns with that? /triage under-consideration Editing to add a small response:
Part of the reason for the lengthy deprecation process is so that we can address user concerns like these before removing large features, and I'm optimistic that we can get |
patches
should accept a patch file with multiple patches
The feature of supporting multiple patches used the same way as @natasha41575 showed is highly needed for all of the folks relying currently on |
#3481 is a related issue, but the decision there was made prior to the deprecation of |
After discussion, we have decided to accept the feature with the following restrictions:
/triage accepted |
@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. |
@koba1t Are you interested in working on this? |
/assign |
It would be great to get #5059 merged! |
To clarify, this comment refers to json6902 patches expressed in yaml documents, not json. |
@natasha41575 Is it resolved? /assign |
@ashutosh887 /unassign @ashutosh887 |
Eschewed features
What would you like to have added?
patchesStrategicMerge
is deprecated but provides a feature that is not currently possible withpatches
in that multiple strategic merge patches can be combined into a single file.I should be able to specify that my targets are determined by the GVKNN of the strategic merge patch itself:
The exact syntax is unimportant.
Why is this needed?
This is valuable when patch changes are correlated and future changes need to consider multiple targets. Splitting such patches across multiple files is incoherent and error prone.
Can you accomplish the motivating task without this feature, and if so, how?
My first preference would be to simply recognize this is a valuable use case and not deprecated or remove it.
What other solutions have you considered?
Helm? This ability was central to why I started using kustomize years ago, so I am frankly shocked that it is on the chopping block.
Anything else we should know?
Relates to #5040
Feature ownership
The text was updated successfully, but these errors were encountered: