Argo Workflows · JSON Structure

Argo Workflows Io K8S Api Core V1 Container Restart Rule Structure

ContainerRestartRule describes how a container exit is handled.

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

io.k8s.api.core.v1.ContainerRestartRule is a JSON Structure definition published by Argo Workflows, describing 2 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

action exitCodes

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-k8s-api-core-v1-container-restart-rule-structure.json",
  "name": "io.k8s.api.core.v1.ContainerRestartRule",
  "description": "ContainerRestartRule describes how a container exit is handled.",
  "type": "object",
  "properties": {
    "action": {
      "description": "Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is \"Restart\" to restart the container.",
      "type": "string"
    },
    "exitCodes": {
      "description": "Represents the exit codes to check on container exits.",
      "$ref": "#/definitions/io.k8s.api.core.v1.ContainerRestartRuleOnExitCodes"
    }
  },
  "required": [
    "action"
  ]
}