diff --git a/charts/vela-core/templates/defwithtemplate/apply-component.yaml b/charts/vela-core/templates/defwithtemplate/apply-component.yaml deleted file mode 100644 index c49a987ef..000000000 --- a/charts/vela-core/templates/defwithtemplate/apply-component.yaml +++ /dev/null @@ -1,26 +0,0 @@ -# Code generated by KubeVela templates. DO NOT EDIT. Please edit the original cue file. -# Definition source cue file: vela-templates/definitions/internal/apply-component.cue -apiVersion: core.oam.dev/v1beta1 -kind: WorkflowStepDefinition -metadata: - annotations: - definition.oam.dev/description: Apply components and traits for your workflow steps - name: apply-component - namespace: {{.Values.systemDefinitionNamespace}} -spec: - schematic: - cue: - template: | - import ( - "vela/op" - ) - - // apply components and traits - apply: op.#ApplyComponent & { - component: parameter.component - } - parameter: { - // +usage=Declare the name of the component - component: string - } - diff --git a/charts/vela-core/templates/defwithtemplate/apply-remaining.yaml b/charts/vela-core/templates/defwithtemplate/apply-remaining.yaml index 44ae7ae8e..41d2401c3 100644 --- a/charts/vela-core/templates/defwithtemplate/apply-remaining.yaml +++ b/charts/vela-core/templates/defwithtemplate/apply-remaining.yaml @@ -21,16 +21,6 @@ spec: } parameter: { // +usage=Declare the name of the component - exceptions?: [componentName=string]: { - // +usage=skipApplyWorkload indicates whether to skip apply the workload resource - skipApplyWorkload: *true | bool - - // +usage=skipAllTraits indicates to skip apply all resources of the traits. - // +usage=If this is true, skipApplyTraits will be ignored - skipAllTraits: *true | bool - - // +usage=skipApplyTraits specifies the names of the traits to skip apply - skipApplyTraits: [...string] - } + exceptions?: [...string] } diff --git a/docs/examples/workflow/apply-remaining/app.yaml b/docs/examples/workflow/apply-remaining/app.yaml index 2ba2146d9..d364d59f0 100644 --- a/docs/examples/workflow/apply-remaining/app.yaml +++ b/docs/examples/workflow/apply-remaining/app.yaml @@ -19,4 +19,4 @@ spec: type: apply-remaining properties: exceptions: - "server1": {} + - "server1" diff --git a/vela-templates/definitions/internal/apply-component.cue b/vela-templates/definitions/internal/apply-component.cue deleted file mode 100644 index e661d35fe..000000000 --- a/vela-templates/definitions/internal/apply-component.cue +++ /dev/null @@ -1,21 +0,0 @@ -import ( - "vela/op" -) - -"apply-component": { - type: "workflow-step" - annotations: {} - labels: {} - description: "Apply components and traits for your workflow steps" -} -template: { - // apply components and traits - apply: op.#ApplyComponent & { - component: parameter.component - } - - parameter: { - // +usage=Declare the name of the component - component: string - } -} diff --git a/vela-templates/definitions/internal/apply-remaining.cue b/vela-templates/definitions/internal/apply-remaining.cue index 368c8de92..966b82d2f 100644 --- a/vela-templates/definitions/internal/apply-remaining.cue +++ b/vela-templates/definitions/internal/apply-remaining.cue @@ -16,16 +16,6 @@ template: { parameter: { // +usage=Declare the name of the component - exceptions?: [componentName=string]: { - // +usage=skipApplyWorkload indicates whether to skip apply the workload resource - skipApplyWorkload: *true | bool - - // +usage=skipAllTraits indicates to skip apply all resources of the traits. - // +usage=If this is true, skipApplyTraits will be ignored - skipAllTraits: *true | bool - - // +usage=skipApplyTraits specifies the names of the traits to skip apply - skipApplyTraits: [...string] - } + exceptions?: [...string] } }