This section describes how to use sub steps in KubeVela.
There is a special step type
step-group in KubeVela workflow where you can declare sub-steps when using
step-group type steps.
In the version less or equal than v1.4.x, sub steps in a step group are executed concurrently.
In version 1.5+, you can specify the execution mode of steps and sub-steps.
Apply the following example:
- name: express-server1
- name: express-server2
- name: express-server3
- name: step1
- name: step2
- name: step2-sub1
- name: step2-sub2
By default, steps are executed sequentially, so step2 is not executed until step1 is deployed. Whereas in the step-group, sub-steps will be executed concurrently by default, so step2-sub1 and step2-sub2 will be deployed at the same time.