github.com/kubevela/workflow@v0.6.0/charts/vela-workflow/templates/definitions/delete-config.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/delete-config.cue 3 apiVersion: core.oam.dev/v1beta1 4 kind: WorkflowStepDefinition 5 metadata: 6 annotations: 7 definition.oam.dev/description: Delete a config 8 name: delete-config 9 namespace: {{ include "systemDefinitionNamespace" . }} 10 spec: 11 schematic: 12 cue: 13 template: | 14 import ( 15 "vela/op" 16 ) 17 18 deploy: op.#DeleteConfig & { 19 name: parameter.name 20 if parameter.namespace != _|_ { 21 namespace: parameter.namespace 22 } 23 if parameter.namespace == _|_ { 24 namespace: context.namespace 25 } 26 } 27 parameter: { 28 //+usage=Specify the name of the config. 29 name: string 30 31 //+usage=Specify the namespace of the config. 32 namespace?: string 33 } 34