goyamp icon indicating copy to clipboard operation
goyamp copied to clipboard

Add 'patch' feature simliar to Kubertes' Kustomize

Open birchb1024 opened this issue 3 years ago • 0 comments

Kustomize has sed-like features which allow matching on a subtree (patch) or on maps with multiple keys, unlike Goyamp which currently matches on a single key. This enhancement would add rewrite logic in a similar way. Perhaps something like this:

define:
    $some-input:
         foo:
            alpha: 23
            bar:
               quux:
---
patch:
    - $some-input
    - foo:
         bar: 42

Outputs

foo:
  alpha: 23
  bar: 42

birchb1024 avatar Mar 02 '21 22:03 birchb1024