Argo Workflows · Schema
io.argoproj.workflow.v1alpha1.ResourceTemplate
ResourceTemplate is a template subtype to manipulate kubernetes resources
CNCFContainersData ProcessingKubernetesMachine LearningOpen SourceWorkflow Engine
Properties
| Name | Type | Description |
|---|---|---|
| action | string | Action is the action to perform to the resource. Must be one of: get, create, apply, delete, replace, patch |
| failureCondition | string | FailureCondition is a label selector expression which describes the conditions of the k8s resource in which the step was considered failed |
| flags | array | Flags is a set of additional options passed to kubectl before submitting a resource I.e. to disable resource validation: flags: [ "--validate=false" # disable resource validation ] |
| manifest | string | Manifest contains the kubernetes manifest |
| manifestFrom | object | ManifestFrom is the source for a single kubernetes manifest |
| mergeStrategy | string | MergeStrategy is the strategy used to merge a patch. It defaults to "strategic" Must be one of: strategic, merge, json |
| setOwnerReference | boolean | SetOwnerReference sets the reference to the workflow on the OwnerReference of generated resource. |
| successCondition | string | SuccessCondition is a label selector expression which describes the conditions of the k8s resource in which it is acceptable to proceed to the following step |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/argo-workflows/refs/heads/main/json-schema/argo-workflows-io-argoproj-workflow-v1alpha1-resource-template-schema.json",
"title": "io.argoproj.workflow.v1alpha1.ResourceTemplate",
"description": "ResourceTemplate is a template subtype to manipulate kubernetes resources",
"type": "object",
"properties": {
"action": {
"description": "Action is the action to perform to the resource. Must be one of: get, create, apply, delete, replace, patch",
"type": "string"
},
"failureCondition": {
"description": "FailureCondition is a label selector expression which describes the conditions of the k8s resource in which the step was considered failed",
"type": "string"
},
"flags": {
"description": "Flags is a set of additional options passed to kubectl before submitting a resource I.e. to disable resource validation: flags: [\n\t\"--validate=false\" # disable resource validation\n]",
"type": "array",
"items": {
"type": "string"
}
},
"manifest": {
"description": "Manifest contains the kubernetes manifest",
"type": "string"
},
"manifestFrom": {
"description": "ManifestFrom is the source for a single kubernetes manifest",
"$ref": "#/definitions/io.argoproj.workflow.v1alpha1.ManifestFrom"
},
"mergeStrategy": {
"description": "MergeStrategy is the strategy used to merge a patch. It defaults to \"strategic\" Must be one of: strategic, merge, json",
"type": "string"
},
"setOwnerReference": {
"description": "SetOwnerReference sets the reference to the workflow on the OwnerReference of generated resource.",
"type": "boolean"
},
"successCondition": {
"description": "SuccessCondition is a label selector expression which describes the conditions of the k8s resource in which it is acceptable to proceed to the following step",
"type": "string"
}
},
"required": [
"action"
]
}