Files
kubevela/vela-templates/definitions/internal/trait/json-patch.cue
Somefive 598de21f67 Feat: add support for json-patch and json-merge-patch (#3406)
* Feat: add support for json-patch and json-merge-patch

Signed-off-by: Somefive <yd219913@alibaba-inc.com>

* Fix: add e2e test

Signed-off-by: Somefive <yd219913@alibaba-inc.com>

* Fix: refactor json-patch field

Signed-off-by: Somefive <yd219913@alibaba-inc.com>
2022-03-11 14:57:50 +08:00

16 lines
310 B
CUE

"json-patch": {
type: "trait"
annotations: {}
labels: {}
description: "Patch the output following Json Patch strategy, following RFC 6902."
attributes: {
podDisruptive: true
appliesToWorkloads: ["*"]
}
}
template: {
parameter: operations: [...{...}]
// +patchStrategy=jsonPatch
patch: parameter
}