mirror of
https://github.com/kubevela/kubevela.git
synced 2026-02-14 10:00:06 +00:00
36 lines
990 B
YAML
36 lines
990 B
YAML
# Code generated by KubeVela templates. DO NOT EDIT. Please edit the original cue file.
|
|
# Definition source cue file: vela-templates/definitions/internal/delete-config.cue
|
|
apiVersion: core.oam.dev/v1beta1
|
|
kind: WorkflowStepDefinition
|
|
metadata:
|
|
annotations:
|
|
custom.definition.oam.dev/category: Config Management
|
|
definition.oam.dev/description: Delete a config
|
|
name: delete-config
|
|
namespace: {{ include "systemDefinitionNamespace" . }}
|
|
spec:
|
|
schematic:
|
|
cue:
|
|
template: |
|
|
import (
|
|
"vela/op"
|
|
)
|
|
|
|
deploy: op.#DeleteConfig & {
|
|
name: parameter.name
|
|
if parameter.namespace != _|_ {
|
|
namespace: parameter.namespace
|
|
}
|
|
if parameter.namespace == _|_ {
|
|
namespace: context.namespace
|
|
}
|
|
}
|
|
parameter: {
|
|
//+usage=Specify the name of the config.
|
|
name: string
|
|
|
|
//+usage=Specify the namespace of the config.
|
|
namespace?: string
|
|
}
|
|
|