Argo Workflows · JSON Structure

Argo Workflows Io Argoproj Workflow V1Alpha1 Resource Template Structure

ResourceTemplate is a template subtype to manipulate kubernetes resources

Type: object Properties: 8 Required: 1
CNCFContainersData ProcessingKubernetesMachine LearningOpen SourceWorkflow Engine

io.argoproj.workflow.v1alpha1.ResourceTemplate is a JSON Structure definition published by Argo Workflows, describing 8 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

action failureCondition flags manifest manifestFrom mergeStrategy setOwnerReference successCondition

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/argo-workflows/refs/heads/main/json-structure/argo-workflows-io-argoproj-workflow-v1alpha1-resource-template-structure.json",
  "name": "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"
  ]
}