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