Skip to content

Commit a7d3da1

Browse files
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 a7d3da1

File tree

4 files changed

+374
-59
lines changed

4 files changed

+374
-59
lines changed

api/internal/builtins/PatchJson6902Transformer.go

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/internal/builtins/PatchTransformer.go

Lines changed: 46 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)