Commit 8da8556
committed
feat: allowNoTargetMatch feature for PatchTransformer and Path6902Transformer
This commit makes use of the new PatchArgs type and the new Patch option `allowNoTargetMatch`.
This option, if true, allows rendering kustomization even if no resource is matched against the given target, while printing a warning to stderr.
By default this option is set to false meaning that if no resource is matched against the given target an error is raised.
This commit includes the extra tests to test this new feature.1 parent 10986a0 commit 8da8556
File tree
5 files changed
+377
-62
lines changed- api
- internal
- builtins
- target
- krusty
- plugin/builtin/patchtransformer
5 files changed
+377
-62
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
254 | | - | |
255 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| |||
0 commit comments