Slide 17
Slide 17 text
JSONPatch
Kubernetes uses JSONPatch, defined by RFC6902, to describe
webhook mutations
[
{ "op": "remove", "path": "/a/b/c" },
{ "op": "add", "path": "/a/b/c", "value": [ "foo", "bar" ] },
{ "op": "move", "from": "/a/b/c", "path": "/a/b/d" },
{ "op": "copy", "from": "/a/b/d", "path": "/a/b/e" }
]
The github.com/mattbaird/jsonpatch package works well for
simple cases