github.com/kubevela/workflow@v0.6.0/e2e/test-data/definitions/delete-config.yaml (about)

     1  apiVersion: core.oam.dev/v1beta1
     2  kind: WorkflowStepDefinition
     3  metadata:
     4    annotations:
     5      definition.oam.dev/description: Delete a config
     6    name: delete-config
     7    namespace: vela-system
     8  spec:
     9    schematic:
    10      cue:
    11        template: |
    12          import (
    13          	"vela/op"
    14          )
    15          deploy: op.#DeleteConfig & {
    16          	name: parameter.name
    17          	if parameter.namespace != _|_ {
    18          		namespace: parameter.namespace
    19          	}
    20          	if parameter.namespace == _|_ {
    21          		namespace: context.namespace
    22          	}
    23          }
    24          parameter: {
    25          	//+usage=Specify the name of the config.
    26          	name: string
    27          	//+usage=Specify the namespace of the config.
    28          	namespace?: string
    29          }