# Code generated by KubeVela templates. DO NOT EDIT. Please edit the original cue file.
# Definition source cue file: vela-templates/definitions/internal/builtin-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"
        }

