mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-18 03:56:36 +00:00
34 lines
959 B
YAML
34 lines
959 B
YAML
# 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: rollout-wait-succeed
|
|
namespace: vela-system
|
|
spec:
|
|
schematic:
|
|
cue:
|
|
template: |
|
|
import (
|
|
"vela/op"
|
|
)
|
|
|
|
// apply components and traits
|
|
apply: op.#ApplyComponent & {
|
|
component: parameter.component
|
|
}
|
|
|
|
parameter: {
|
|
// +usage=Declare the name of the application
|
|
appName: string
|
|
// +usage=Declare the name of the component
|
|
component: string
|
|
}
|
|
|
|
wait: op.#ConditionalWait & {
|
|
continue: apply.traits["rollout"].value.status.rollingState=="rolloutSucceed"
|
|
}
|
|
|