Closed mamachanko closed 2 years ago
Companion PR for docs: https://github.com/vmware-tanzu/carvel/pull/553
Wow! This is wonderful! 🙏🏻
@pivotaljohn As per your very reasonable suggestion, the via
kwarg now receives both the left and the right node. 🙇🏻♂️
@pivotaljohn wonderful! 🥹
You closed #718, but is it possible you meant to close #738 instead?
Oh wow... I think it was this comment that triggered the workflow: https://github.com/vmware-tanzu/carvel-ytt/issues/738#issuecomment-1239662734
I'll be choosing my words more wisely, going forward.
The insert overlay action has an optional 'via' kwarg, which receives the left and right node and produces the new right node, similar to the replace overlay action.
For example, this allows to add a
ConfigMap
into every matched KubernetesNamespace
without knowing their names in advance:produces:
Addresses #738
Qs for the maintainers:
InsertAnnotation.Value
is mostly a reproduction of ReplaceAnnotation.Value sans comments and todos. It felt not right to copy over those unless that is preferred.via=lambda ...
expects more than one arg it does not produce a great error message, much likeoverlay/replace
's via. For example:overlay.apply: Document on line stdin:16: function lambda missing 2 arguments (...
Would you consider improving that part of this PR?Companion PR for docs: https://github.com/vmware-tanzu/carvel/pull/553