github.com/oam-dev/kubevela@v1.9.11/vela-templates/definitions/internal/trait/json-patch.cue (about)

     1  "json-patch": {
     2  	type: "trait"
     3  	annotations: {}
     4  	labels: {
     5  		"ui-hidden": "true"
     6  	}
     7  	description: "Patch the output following Json Patch strategy, following RFC 6902."
     8  	attributes: {
     9  		podDisruptive: true
    10  		appliesToWorkloads: ["*"]
    11  	}
    12  }
    13  template: {
    14  	parameter: operations: [...{...}]
    15  	// +patchStrategy=jsonPatch
    16  	patch: parameter
    17  }