KOP GitOps - Deploy Workload - Rafay Product Documentation

Deploy Workload

This stage is responsible for deployment of an already configured, pre-existing workload.

Important

Ensure that you have created a workload before trying to use it in a stage


Pre-Conditions

Stages can be configured to execute ONLY if the expression matches the specified "pre-conditions"

When creating a deploy workload, it's crucial to specify preconditions that define when and how the workload should be executed. These preconditions often involve various variables and expressions that help determine the context and conditions for deployment. The table below outlines the key variables and corresponding expressions that can be used when defining preconditions for deploy workloads.

Below is a comprehensive list of variables and expressions used as preconditions when creating a deploy workload:

Variable Expressions
Partner partner.name (StringType)
partner.id (StringType)
Organization organization.name (StringType)
organization.id (StringType)
Project project.name (StringType)
project.id (StringType)
Pipeline pipeline.name (StringType)
pipeline.id (StringType)
pipeline.instanceID (NumberType)
pipeline.instanceCreatedAt (TimeType)
Trigger trigger.name (StringType)
trigger.id (StringType)
trigger.when (TimeType)
trigger.payload (MapType)
currentStage/ previousStage currentStage.name (StringType)
stages..name (StringType)
previousStage.name (StringType)
currentStage.previous (ListType)
stages..previous (ListType)
currentStage.startedAt (TimeType)
stages..startedAt (TimeType)
previousStage.startedAt (TimeType)
currentStage.output (MapType)
stages..output (MapType)
previousStage.output (MapType)
currentStage.status (StringType)
stages..status (StringType)
previousStage.status (StringType)

Stage Variables

All the variables available for a given stage are fetched as a sorted list according to their scope (Organization > Project > Pipeline > Trigger > Stage). These variables are evaluated with the environment. The environment is then updated with the variable according to their scope.


Back to top