Skip to main content

GitopsWorkflow

Resource GitopsWorkflow in pulumi-portainer.
7 min read

Resource GitopsWorkflow in pulumi-portainer.

Pulumi type: portainer:index/gitopsWorkflow:GitopsWorkflow.

name is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

Example#

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

Arguments#

PropertyTypeRequiredDescription
artifactsGitopsWorkflowArtifact (input)[]yesThe artifacts the workflow deploys. Repeatable.
gitopsWorkflowIdstringno
namestringnoName of the workflow.
onDestroystringnoWhat happens to the deployed artifacts when the workflow is destroyed: destroy tears them down, detach leaves them running and only unlinks them from GitOps. Defaults to destroy.

Outputs#

Computed outputs are produced by the provider. They are not constructor arguments.

PropertyTypeComputedDescription
artifactsGitopsWorkflowArtifact (output)[]noThe artifacts the workflow deploys. Repeatable.
gitopsWorkflowIdstringno
namestringnoName of the workflow.
onDestroystringnoWhat happens to the deployed artifacts when the workflow is destroyed: destroy tears them down, detach leaves them running and only unlinks them from GitOps. Defaults to destroy.
workflowIdnumberyesIdentifier of the workflow.

GitopsWorkflowArtifact (input)#

Input object GitopsWorkflowArtifact. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
artifactIdnumbernoIdentifier Portainer assigned to the artifact, which the update call needs.
configGitopsWorkflowArtifactConfig (input)noDeployment options for the artifact.
deploymentTypestringyesDeployment type of the artifact, for example compose or kubernetes.
edgeGroupIdsnumber[]yesEdge groups the artifact is deployed to.
filesGitopsWorkflowArtifactFile (input)[]yesFiles in a GitOps source the artifact is built from. Repeatable.
namestringyesName of the artifact. Portainer cannot rename an artifact, so changing it forces a new resource.
typestringnoWhat the artifact deploys as: stack or edgeStack. Defaults to edgeStack.

GitopsWorkflowArtifactConfig (input)#

Input object GitopsWorkflowArtifactConfig. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
alwaysCloneGitRepobooleannoWhether the agent always clones the git repository for relative paths.
environment{ [key: string]: string }noEnvironment variables injected into the deployment.
localFilesystemPathstringnoPath on the agent used for relative path volumes.
parallelGitopsWorkflowArtifactConfigParallel (input)noStaggered rollout settings.
perDeviceConfigsGroupMatchTypestringnoHow per-device group configurations are matched: file or dir.
perDeviceConfigsMatchTypestringnoHow per-device configurations are matched: file or dir.
perDeviceConfigsPathstringnoPath within the repository holding per-device configurations.
prePullImagebooleannoWhether agents pull the images before deploying.
registryIdsnumber[]noRegistries the deployment pulls images from.
retryPeriodnumbernoHow long an agent keeps retrying a failed deployment, in seconds.
useManifestNamespacesbooleannoWhether to use the namespaces in the manifest rather than the default one.

GitopsWorkflowArtifactConfigParallel (input)#

Input object GitopsWorkflowArtifactConfigParallel. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
batchCountnumbernoDevices updated at once. A value above zero turns parallel deployment on.
batchIncrementBynumbernoHow much the batch grows each round, for an incremental rollout.
delaystringnoPause between batches.
failureActionstringnoWhat happens when a batch fails.
timeoutstringnoHow long a batch may take before it is given up on.

GitopsWorkflowArtifactFile (input)#

Input object GitopsWorkflowArtifactFile. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
pathstringyesPath of the file within the source, for example portainer.yaml.
refstringyesGit reference to read the file at, for example refs/heads/main.
sourceIdnumberyesIdentifier of the GitOps source the file comes from.

GitopsWorkflowArtifact (output)#

Output object GitopsWorkflowArtifact. Fields below belong to this object.

PropertyTypeAlways presentDescription
artifactIdnumberyesIdentifier Portainer assigned to the artifact, which the update call needs.
configGitopsWorkflowArtifactConfig (output)noDeployment options for the artifact.
deploymentTypestringyesDeployment type of the artifact, for example compose or kubernetes.
edgeGroupIdsnumber[]yesEdge groups the artifact is deployed to.
filesGitopsWorkflowArtifactFile (output)[]yesFiles in a GitOps source the artifact is built from. Repeatable.
namestringyesName of the artifact. Portainer cannot rename an artifact, so changing it forces a new resource.
typestringnoWhat the artifact deploys as: stack or edgeStack. Defaults to edgeStack.

GitopsWorkflowArtifactConfig (output)#

Output object GitopsWorkflowArtifactConfig. Fields below belong to this object.

PropertyTypeAlways presentDescription
alwaysCloneGitRepobooleannoWhether the agent always clones the git repository for relative paths.
environment{ [key: string]: string }noEnvironment variables injected into the deployment.
localFilesystemPathstringnoPath on the agent used for relative path volumes.
parallelGitopsWorkflowArtifactConfigParallel (output)noStaggered rollout settings.
perDeviceConfigsGroupMatchTypestringnoHow per-device group configurations are matched: file or dir.
perDeviceConfigsMatchTypestringnoHow per-device configurations are matched: file or dir.
perDeviceConfigsPathstringnoPath within the repository holding per-device configurations.
prePullImagebooleannoWhether agents pull the images before deploying.
registryIdsnumber[]noRegistries the deployment pulls images from.
retryPeriodnumbernoHow long an agent keeps retrying a failed deployment, in seconds.
useManifestNamespacesbooleannoWhether to use the namespaces in the manifest rather than the default one.

GitopsWorkflowArtifactConfigParallel (output)#

Output object GitopsWorkflowArtifactConfigParallel. Fields below belong to this object.

PropertyTypeAlways presentDescription
batchCountnumbernoDevices updated at once. A value above zero turns parallel deployment on.
batchIncrementBynumbernoHow much the batch grows each round, for an incremental rollout.
delaystringnoPause between batches.
failureActionstringnoWhat happens when a batch fails.
timeoutstringnoHow long a batch may take before it is given up on.

GitopsWorkflowArtifactFile (output)#

Output object GitopsWorkflowArtifactFile. Fields below belong to this object.

PropertyTypeAlways presentDescription
pathstringyesPath of the file within the source, for example portainer.yaml.
refstringyesGit reference to read the file at, for example refs/heads/main.
sourceIdnumberyesIdentifier of the GitOps source the file comes from.