mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-23 17:53:04 +00:00
* 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>
16 lines
310 B
CUE
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
|
|
}
|