Katrina Verey
a612cd2b7e
Fix pluginator incompatibility with nolint lines
2022-11-30 11:22:10 -05:00
monopole
6f6d41f17f
Remove dead merge conflict code.
2021-03-17 06:35:30 -07:00
monopole
74d5646526
Allow patch removal of emptyDir {}
2021-03-15 18:34:36 -07:00
Natasha Sarkar
5958edda14
don't merge patches until they are applied
2021-01-26 16:43:15 -08:00
jregan
8b97274af3
More merge tests, clearer method names.
2020-12-22 17:26:12 -08:00
jregan
f66e5bb923
Extract conflict detection to it's own interface.
...
This PR
- defines a patch conflict detector interface,
- extracts implementations of the interface from the
merginator code, making the merginator code
independent of --enable_kyaml.
- injects those implementations into kustomize
as a function of --enable_kyaml.
So, instead of using different merginators to combine
resmaps, this pr allows the use of a single patch merge
code path that uses different conflict detectors.
So instead of debating how to merge, we're now only
considering whether to warn on conflict detection
in one transformer.
This PR is in service of #3304 , eliminating seven
instances where --enable_kyaml was consulted. These
were cases where conflict detection wasn't an issue
(but merging patches was).
2020-12-06 08:38:45 -08:00
jregan
4a55a07c14
Patchtransformers - drop copied code, improve deletion handling.
2020-11-30 11:58:43 -08:00
Natasha Sarkar
7c8c827a88
added IsEmpty() method
2020-09-30 12:17:14 -07:00
jregan
1d91401772
Simplify use of the Merginator.
2020-08-22 08:07:57 -07:00
jregan
33e68c0f97
Removing YAMLSupport==false code path.
...
This continues work on the master and v3.8.* branches
to eliminate apimachinery dependence.
2020-07-10 19:06:26 -07:00
jregan
d3a7335bbc
Switch namespace and patch transformers to kyaml.
2020-07-04 16:21:01 -07:00
jregan
5f5b23af58
Update SMP transformer for kyaml
2020-06-26 11:14:02 -07:00
jregan
e783af2881
Delegate to Kunstructured.
2020-06-19 15:06:13 -07:00
Morten Torkildsen
98c08b2b66
Add strategic merge patch filter based on kyaml libraries
2020-04-03 13:56:20 -07:00
Jeffrey Regan
46524d3b6a
Introduce API module.
2019-10-21 13:30:31 -07:00
jregan
3af5a8afea
Make resource, resmap public.
2019-10-20 10:51:20 -07:00
Jeffrey Regan
e5c8b5ec8f
Start api directory, which will become a module.
2019-10-17 14:01:20 -07:00
jregan
07d2500ee3
Make types package public.
2019-10-16 16:41:43 -07:00
Jeffrey Regan
41a008e9a3
Start pluglib, a set of public, plugin specific functions.
2019-10-14 19:43:55 -07:00
Jeffrey Regan
baa0296a12
Reduce size of pgmconfig package
2019-10-03 18:22:05 -07:00
Jeffrey Regan
def4f04572
Depend on new pluginator location.
2019-09-24 16:43:53 -07:00
Vlad Gorodetsky
bafd6b5423
Fix typo in patches definition
2019-07-30 14:52:02 +03:00
jingfangliu
35481ec6d9
add inline patch support for Strategic Merge Patch and JSON patch
2019-07-29 14:10:57 -07:00
jingfangliu
fc78917191
support strategic merge patch with $patch: delete
2019-07-24 12:46:33 -07:00
jingfangliu
33fff655db
move strategic merge patch transformer to a builtin transformer
2019-07-11 13:39:30 -07:00