# Code generated by KubeVela templates. DO NOT EDIT. Please edit the original cue file.
# Definition source cue file: vela-templates/definitions/internal/create-config.cue
apiVersion: core.oam.dev/v1beta1
kind: WorkflowStepDefinition
metadata:
  annotations:
    custom.definition.oam.dev/category: Config Management
    definition.oam.dev/description: Create or update a config
  name: create-config
  namespace: {{ include "systemDefinitionNamespace" . }}
spec:
  schematic:
    cue:
      template: |
        import (
        	"vela/config"
        )

        deploy: config.#CreateConfig & {
        	$params: parameter
        }
        parameter: {
        	//+usage=Specify the name of the config.
        	name: string

        	//+usage=Specify the namespace of the config.
        	namespace: *context.namespace | string

        	//+usage=Specify the template of the config.
        	template?: string

        	//+usage=Specify the content of the config.
        	config: {...}
        }

