monopole
5c4e363f11
Remove delegation to RNode in Resource.
2021-05-11 10:49:17 -07:00
monopole
01ddeb476d
Introduce resmap.ApplyFilter.
2021-05-10 20:47:57 -07:00
monopole
82abd7e9ea
Simplify kind and name change code.
2021-05-09 16:20:39 -07:00
monopole
660847225d
Simplify gvk, speed up cluster-scoped checks.
2021-05-02 13:17:33 -07:00
monopole
c8dddac5b9
Move resid package from api to kyaml
2021-04-30 20:39:32 -07:00
monopole
c828b1e49a
Use resid.ResId in replacements.
2021-04-23 09:30:05 -07:00
navist2020
5d3dac04fa
modify Error log info
2021-04-23 14:40:05 +08:00
monopole
aa5b4814d6
upgrade to helm 3.5.4 and imdario/mergo v0.3.12
2021-04-09 15:05:41 -07:00
Natasha Sarkar
fa0b237178
add replacement filter to support replacmenttransformer
2021-03-31 17:04:43 -07:00
monopole
6f6d41f17f
Remove dead merge conflict code.
2021-03-17 06:35:30 -07:00
monopole
235101a614
Drop uses of 'unstructured' terminology.
2021-03-15 15:59:06 -07:00
monopole
123a5d6e56
Remove the wrappy layer.
2021-03-15 15:59:06 -07:00
Natasha Sarkar
f96ac2d61e
allow general name and kind changes via an options field in patches
2021-03-10 14:58:58 -08:00
monopole
839fd2b971
Remove branching on kyaml enablement
2021-03-09 14:29:27 -08:00
Natasha Sarkar
722b0131f0
return error for duplicate keys rather than panicking
2021-03-03 12:13:24 -08:00
Donny Xia
6518393f5d
support binaryData merge
2021-02-11 15:34:16 -08:00
Natasha Sarkar
cb400c895e
added test to check for resources with the same name in different layers
2021-02-05 12:35:59 -08:00
Natasha Sarkar
43157f5d35
cleaned up resource refactoring
2021-02-03 14:30:25 -08:00
Natasha Sarkar
cd918483f9
removed some prefix methods from resource
2021-02-03 12:02:12 -08:00
Natasha Sarkar
f71854a0c8
Refactored resource to store all previous names and namespaces
2021-02-03 12:01:09 -08:00
monopole
64644643d4
Improve name reference transformer testing.
2021-01-31 08:40:47 -08:00
Donny Xia
6cf6eb9f76
use reource.AsYAML in resWrangler.AsYAML
2021-01-20 12:51:25 -08:00
Donny Xia
ffed8f1430
add error message for AsYAML
2021-01-20 10:40:59 -08:00
monopole
45b1bf17d3
Annotate decisions on issue 3304 in api.
2021-01-16 08:08:52 -08:00
monopole
2cb972de3b
Rename id annotations to build annotations.
2021-01-15 06:43:13 -08:00
monopole
bb41d018b5
Add more tests and explain some strange quotes.
2021-01-13 15:49:12 -08:00
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
monopole
c2fbb709da
Don't swallow error in SM patch and use new RNode Map method.
2021-01-09 07:00:21 -08:00
jregan
6a3bb5df44
Drop another difference between kyaml and apimachinery
2020-12-26 10:12:33 -08:00
jregan
8b97274af3
More merge tests, clearer method names.
2020-12-22 17:26:12 -08:00
jregan
735befef19
Add kunstruct impl of Get/SetDataMap, replace Resource.Merge
2020-12-21 07:22:03 -08:00
jregan
bd27d5f8bb
Fix apiversion slash
2020-12-17 08:42:15 -08:00
Donny Xia
d016326877
avoid error when the node has local-config
2020-12-15 13:29:19 -08:00
jregan
d08b9c30ee
What is this?
2020-12-07 10:16:30 -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
d5ce26e423
Patchtransformers - drop copied code, improve deletion handling.
2020-11-30 18:43:35 -08:00
jregan
4a55a07c14
Patchtransformers - drop copied code, improve deletion handling.
2020-11-30 11:58:43 -08:00
Jeff Regan
42b082a6b1
Merge pull request #3285 from monopole/improveSelectTest
...
Add labels to selector test.
2020-11-26 06:57:14 -08:00
jregan
c3cdd15769
Clean up selector test.
2020-11-26 06:36:24 -08:00
jregan
aed7e5aaf9
Delegate more from WNode to RNode.
...
The implementations in WNode are supposed to be thin,
as it will be removed once #2506 closes.
The change also makes some addjustments for the
upcoming flip of the enable_kyaml flag, pointing to
issue #3271 .
2020-11-25 07:11:06 -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
4add7eccd0
fix rnode string format converted from resmap
2020-11-20 14:34:11 -08:00
Donny Xia
536b69e5dc
add methods to convert resmap to&from rnodes
2020-11-13 13:41:34 -08:00
Donny Xia
78c26f55b5
support regex in GVK selection
2020-11-06 13:23:55 -08:00
Natasha Sarkar
49dced2e01
removed hardcoded list of namespaceable resources
2020-10-23 11:47:29 -07:00
Stuart P. Bentley
3c8e6d7151
Group regex within anchoring
...
This ensures that anchoring will apply to the entire anchored expression, eg. a pattern like `foo|bar` will only match the strings "foo" and "bar" (`^(?:foo|bar)$`), instead of matching any string that begins with "foo" or ends with "bar" (`^foo|bar$`).
2020-10-10 15:47:38 -07:00
Donny Xia
544fc60bfe
add another test
2020-09-21 12:24:47 -07:00
Donny Xia
2f8a376ae4
fix namespace will match all empty namespace
2020-09-17 12:46:18 -07:00
Donny Xia
6a7afd8694
fix name reference with prefixsuffix
2020-08-25 12:25:37 -07:00