Apply Step group
The step-group workflow step creates a subgroup of steps that will be executed sequentially. This is useful for complex workflows to simplify the inter-relationships and dependencies.
The following snippet contains an application with a step-group workflow step to deploy the components one after the other, and after that send a notification to Slack.
apiVersion: core.oam.dev/v1beta1 kind: Application metadata: name: my-app annotations: version: "v0.0.1" description: "My step-group application" spec: components: - name: component1 type: worker properties: image: my-app-image:v1.0.0 cmd: ["cmd"] cpu: "0.25" memory: "200Mi" - name: component2 type: worker properties: image: my-app-image:v1.0.0 cmd: ["cmd"] cpu: "0.25" memory: "200Mi" workflow: steps: - name: step type: step-group subSteps: - name: apply-step1-1 type: apply-component properties: component: component2 - name: apply-step1-2 type: apply-component properties: component: component1 - name: notification type: notification properties: slack: # Slack channel and message configuration ...