github.com/oam-dev/kubevela@v1.9.11/docs/examples/workflow/rollout/rollout-wait-succeed.yaml (about) 1 # Code generated by KubeVela templates. DO NOT EDIT. Please edit the original cue file. 2 # Definition source cue file: vela-templates/definitions/internal/builtin-apply-component.cue 3 apiVersion: core.oam.dev/v1beta1 4 kind: WorkflowStepDefinition 5 metadata: 6 annotations: 7 definition.oam.dev/description: Apply components and traits for your workflow steps 8 name: rollout-wait-succeed 9 namespace: vela-system 10 spec: 11 schematic: 12 cue: 13 template: | 14 import ( 15 "vela/op" 16 ) 17 18 // apply components and traits 19 apply: op.#ApplyComponent & { 20 component: parameter.component 21 } 22 23 parameter: { 24 // +usage=Declare the name of the application 25 appName: string 26 // +usage=Declare the name of the component 27 component: string 28 } 29 30 wait: op.#ConditionalWait & { 31 continue: apply.traits["rollout"].value.status.rollingState=="rolloutSucceed" 32 } 33