Natasha Sarkar
bd4580d73a
Manage name changes (prefix/suffix) via YAML annotations rather than via in-memory-only fields.
2021-01-11 13:08:45 -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
jregan
5248fd0cd9
In some tests, replace reflection with yaml compare.
2020-11-22 18:48:32 -08:00
jregan
a5f3d5c823
Use DepProvider in tests to access kyaml impls.
2020-11-21 14:49:44 -08:00
Donny Xia
abc88c56c4
support inline transformer and generator
2020-11-12 15:19:14 -08:00
Kubernetes Prow Robot
0acac39640
Merge pull request #3192 from Shell32-Natsu/multierror
...
Improve the readability for multiple errors in kusttarget
2020-11-06 17:21:38 -08:00
Donny Xia
94d26ba53a
improve the readability for multiple errors
2020-11-06 15:16:48 -08:00
Donny Xia
3b79944190
improve target in JSON6902 transformer
2020-11-03 17:13:43 -08:00
Donny Xia
e75d4fc87d
convert helm inflator to builtin plugin
2020-10-30 23:18:54 -07:00
Jeff Regan
13c9a2873e
Update comments in multi-transformer
2020-10-27 07:17:14 -07:00
jregan
1d91401772
Simplify use of the Merginator.
2020-08-22 08:07:57 -07:00
jregan
edced4b3f6
Delete newly orphaned code.
2020-08-20 13:12:06 -07:00
Donny Xia
083dccfe91
Update hash result in tests
2020-08-05 11:59:13 -07:00
ageekymonk
c660fd33ae
Avoiding Prefix Transformer for Namespace resource
2020-07-21 18:33:42 +10:00
jregan
c878957d0b
Add a test and temporarily disable some plugin tests.
2020-07-17 08:23:11 -07:00
Donny Xia
897698fb29
Uniform unmarshal function
2020-07-14 17:01:43 -07:00
Donny Xia
7e2d3ff5ab
Reuse tansformer codes
2020-06-18 12:18:37 -07:00
Donny Xia
cea1154cd9
Add exception for "validated-by" label
2020-06-17 14:35:12 -07:00
Donny Xia
4843718a2b
Check modification
2020-06-17 14:35:12 -07:00
Donny Xia
a0c1979798
Add validator to kustomization
2020-06-17 14:35:12 -07:00
Kubernetes Prow Robot
cedcf3ac04
Merge pull request #2168 from pgpx/feature-kustomizationpatch
...
Implement "kind: Component" to support composition
2020-06-03 10:32:11 -07:00
Paul Martin
34a442bbef
Additional tests around reusing the same bases and components
2020-05-28 23:02:31 +01:00
jregan
cf6fd30c73
Fix nondeterminstic failure
2020-05-20 08:30:30 -07:00
jregan
07b679955e
Beef up test.
2020-05-19 18:26:37 -07:00
jregan
e28af71b6f
Add coverage for kusttarget.Load
2020-05-19 17:26:18 -07:00
Paul Martin
c5c53011da
PoC to add Components to a separate components list (instead of resources)
...
If this idea is preferred, the code could really do with a refactor (probably using closures to control the behaviour of accumulate directory)
2020-05-18 19:25:29 +01:00
Paul Martin
1079d8604c
Renamed KustomizationPatch to Component
2020-05-18 19:25:29 +01:00
Paul Martin
4454edc14c
Implement "kind: KustomizationPatch" to support composition of Kustomize files
2020-05-18 19:25:29 +01:00
jregan
e54455705d
ValueAddTransformer
2020-05-10 17:49:46 -07:00
Jeff Regan
a9e998d27d
Merge pull request #2424 from monopole/fixErrorMessage
...
Improve config failure error message.
2020-04-30 15:41:04 -07:00
jregan
de9f80c41b
Improve config failure error message.
2020-04-29 19:42:56 -07:00
Donny Xia
63f7495e88
Remove inventory transformer #2392
2020-04-28 17:36:44 +00:00
jregan
1653a70693
Plugin loader improvements.
2020-04-18 18:29:10 -07:00
jregan
c4db0f9a60
checkpoint
2020-04-10 11:01:31 -07:00
Yujun Zhang
ff6250cdb4
Allow loading file from http
2020-02-29 16:19:21 +08:00
Jeffrey Regan
caa71a73fe
Get rid of the fake loader.
2019-12-05 10:50:42 -08:00
Jeffrey Regan
861c86a70a
Simplify plugin tests.
2019-12-02 17:12:59 -08:00
Jeffrey Regan
382c330f5b
Consolidate test harness to one package.
2019-12-02 12:29:10 -08:00
jregan
1f85ce454d
More tests/examples.
2019-11-30 11:32:08 -08:00
jregan
d98af3f06a
Add PrintPluginEnv plugin.
2019-11-30 09:58:11 -08:00
jregan
fdd2cc5004
Move another test.
2019-11-30 07:31:38 -08:00
jregan
ae0658869a
Move more examples up.
2019-11-30 06:57:57 -08:00
Dingshujie
c3716ff3e0
mv diamonds to api/krusty/, Provide another high level example.
2019-11-30 17:35:09 +08:00
Dingshujie
8e7c53b9e7
mv extendedpatch_test, inlinepatch_test to api/krusty/, Provide another high level example.
2019-11-30 17:35:08 +08:00
Dingshujie
cbfe314778
mv generatormergeandreplace_test, generatoroptions_test to api/krusty/, Provide another high level example.
2019-11-30 17:35:08 +08:00
Dingshujie
2d39d64d3a
mv mutiplepath_test, nullvalues_test to api/krusty/, Provide another high level example.
2019-11-30 17:35:08 +08:00
Dingshujie
cd84b65972
mv pruneconfigmap_test to api/krusty/, Provide another high level example.
2019-11-30 17:35:08 +08:00
Dingshujie
fd7574cd61
mv variableref_test to api/krusty/, Provide another high level example.
2019-11-30 17:35:08 +08:00
Dingshujie
d28ef820ea
mv resourceconflict_test to api/krusty/, Provide another high level example.
2019-11-30 14:50:36 +08:00