Files
kustomize/kyaml
Katrina Verey 903fbb6ed2 Wildcard support for creation in ReplacementTransformer (#4886)
* Ahead-of-time wildcard path expansion solution

* Wrapped PathGetter solution

This approach doesn't work when multiple existing sequence elements
should match, i.e. because the sequence contains maps and we're
searching on a key they all contain (target all containers with a certain
image would be one use case for this). PathGetter just takes the first
match in that case, which is not what we want.

* Add creation support to PathMatcher

* Regression test for existing bug when creation is enabled and sequence query should match multiple elements

* PathMatcher Create tests and support for sequence appending

* revert hyphen append support

PathGetter treats it as meaning 'last' not 'append' and does not have test coverage for its handling of this when create is set. Semantics are dubious given that multiple Replacement fieldPaths may be specified, which would cause successive appends.

* This also provides a solution to issue 1493

* Review feedback
2022-12-06 12:40:37 -08:00
..
2020-10-19 12:26:15 -07:00
2020-06-29 17:48:30 -07:00
2022-11-17 12:57:17 -05:00
2022-08-17 16:09:05 -04:00
2022-03-31 11:37:26 -04:00
2022-12-02 13:59:53 -08:00
2022-09-23 07:26:19 +00:00
2022-10-06 05:37:41 +02:00
2019-11-07 09:16:27 -08:00
2022-11-17 12:57:17 -05:00
2022-10-13 09:34:45 +08:00
2022-04-05 15:56:32 -04:00