github.com/oam-dev/kubevela@v1.9.11/charts/vela-core/templates/defwithtemplate/json-patch.yaml (about)

     1  # Code generated by KubeVela templates. DO NOT EDIT. Please edit the original cue file.
     2  # Definition source cue file: vela-templates/definitions/internal/json-patch.cue
     3  apiVersion: core.oam.dev/v1beta1
     4  kind: TraitDefinition
     5  metadata:
     6    annotations:
     7      definition.oam.dev/description: Patch the output following Json Patch strategy, following RFC 6902.
     8    labels:
     9      custom.definition.oam.dev/ui-hidden: "true"
    10    name: json-patch
    11    namespace: {{ include "systemDefinitionNamespace" . }}
    12  spec:
    13    appliesToWorkloads:
    14      - '*'
    15    podDisruptive: true
    16    schematic:
    17      cue:
    18        template: |
    19          parameter: operations: [...{...}]
    20          // +patchStrategy=jsonPatch
    21          patch: parameter
    22