github.com/oam-dev/kubevela@v1.9.11/e2e/addon/mock/testdata/fluxcd/definitions/kustomize-patch.yaml (about) 1 apiVersion: core.oam.dev/v1beta1 2 kind: TraitDefinition 3 metadata: 4 annotations: 5 definition.oam.dev/description: "A list of StrategicMerge or JSON6902 patch to selected target" 6 name: kustomize-patch 7 namespace: vela-system 8 spec: 9 schematic: 10 cue: 11 template: | 12 patch: { 13 spec: { 14 patches: parameter.patches 15 } 16 } 17 parameter: { 18 // +usage=a list of StrategicMerge or JSON6902 patch to selected target 19 patches: [...#patchItem] 20 } 21 22 // +usage=Contains a strategicMerge or JSON6902 patch 23 #patchItem: { 24 // +usage=Inline patch string, in yaml style 25 patch: string 26 // +usage=Specify the target the patch should be applied to 27 target: #selector 28 } 29 30 // +usage=Selector specifies a set of resources 31 #selector: { 32 group?: string 33 version?: string 34 kind?: string 35 namespace?: string 36 name?: string 37 annotationSelector?: string 38 labelSelector?: string 39 }