Skip to main content
Version: v1.4.x

Json-patch

TypeTrait

Parameters​

Parameter
Type
Required
DefaultDescription
operationsarrayYes

Template​

The following tabs display the definition's Cue template and the rendered YAML. The rendered YAML is the output of the Cue template when the definition is applied to a cluster.

"json-patch": {
type: "trait"
annotations: {}
labels: {
"ui-hidden": "true"
}
description: "Patch the output following Json Patch strategy, following RFC 6902."
attributes: {
version: "1.0.1"
}
}

template: {
parameter: operations!: [...{...}]
// +patchStrategy=jsonPatch
patch: parameter
}