Skip to main content

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: {}
}

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