mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-18 03:56:36 +00:00
Fix: fix built in workflow steps (#2378)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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]
|
||||
}
|
||||
|
||||
|
||||
@@ -19,4 +19,4 @@ spec:
|
||||
type: apply-remaining
|
||||
properties:
|
||||
exceptions:
|
||||
"server1": {}
|
||||
- "server1"
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -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]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user