Step Operations
This documentation will introduce the CUE operations provided in vela/op
stdlib package that can be used in each workflow step.
To learn the syntax of CUE, read CUE Basic
#
ApplyCreate or update resource in Kubernetes cluster.
#
Action Parameter- value: the resource structure to be created or updated. And after successful execution,
value
will be updated with resource status. - patch: the content support
Strategic Merge Patch
,let you can define the strategy of list merge through comments.
#
Usage#
ConditionalWaitStep will be blocked until the condition is met.
#
Action Parameter- continue: Step will be blocked until the value becomes
true
.
#
Usage#
LoadGet all components in application.
#
Action ParameterNo parameters.
#
Usage#
ReadGet resource in Kubernetes cluster.
#
Action Parameter- value: the resource metadata to be get. And after successful execution,
value
will be updated with resource definition in cluster. - err: if an error occurs, the
err
will contain the error message.
#
Usage#
ApplyApplicationCreate or update resources corresponding to the application in Kubernetes cluster.
#
Action ParameterNo parameters.
#
Usage#
ApplyComponentCreate or update resources corresponding to the component in Kubernetes cluster. Note that need to use Load
first to apply the resources.
#
Action Parameter- value: the load value of the resource.
- patch: the value to patch resource.
#
Usage#
ApplyRemainingCreate or update the resources corresponding to all components in the application in the Kubernetes cluster, and specify which components do not need to apply through exceptions
, or skip some resources of the exceptional component.
#
Action Parameter- exceptions: indicates the name of the exceptional component.
#
Usage#
SlackSend messages to Slack.
#
Action Parameter- url: The webhook address of Slack.
- message: The messages that you want to send, please refer to Slack messaging 。
#
Usage#
DingTalkSend messages to DingTalk.
#
Action Parameter- url: The webhook address of DingTalk.
- message: The messages that you want to send, please refer to DingTalk messaging 。
#
Usage#
StepsUsed to encapsulate a set of operations.
- In steps, you need to specify the execution order by tag.
#
Usage#
DoVarused to save or read user-defined data in the context of workflow
#
Action Parameter- method: The value is
get
orput
, which indicates whether the action reads or saves data from workflow - path: Path to save or read data
- value: Data content (in the format of cue). When the method is
get
, it indicates the read data, otherwise it indicates the data to be saved