{
  "description": "TinkerbellTemplateConfig is the Schema for the TinkerbellTemplateConfigs API.",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": "string"
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "description": "TinkerbellTemplateConfigSpec defines the desired state of TinkerbellTemplateConfig.",
      "properties": {
        "template": {
          "description": "Template defines a Tinkerbell workflow template with specific tasks and actions.",
          "properties": {
            "global_timeout": {
              "type": "integer"
            },
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "tasks": {
              "items": {
                "description": "Task represents a task to be executed as part of a workflow.",
                "properties": {
                  "actions": {
                    "items": {
                      "description": "Action is the basic executional unit for a workflow.",
                      "properties": {
                        "command": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "environment": {
                          "additionalProperties": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "image": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "on-failure": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "on-timeout": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "pid": {
                          "type": "string"
                        },
                        "timeout": {
                          "format": "int64",
                          "type": "integer"
                        },
                        "volumes": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "image",
                        "name",
                        "timeout"
                      ],
                      "type": "object",
                      "additionalProperties": false
                    },
                    "type": "array"
                  },
                  "environment": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "name": {
                    "type": "string"
                  },
                  "volumes": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "worker": {
                    "type": "string"
                  }
                },
                "required": [
                  "actions",
                  "name",
                  "worker"
                ],
                "type": "object",
                "additionalProperties": false
              },
              "type": "array"
            },
            "version": {
              "type": "string"
            }
          },
          "required": [
            "global_timeout",
            "id",
            "name",
            "tasks",
            "version"
          ],
          "type": "object",
          "additionalProperties": false
        }
      },
      "required": [
        "template"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "description": "TinkerbellTemplateConfigStatus defines the observed state of TinkerbellTemplateConfig.",
      "type": "object"
    }
  },
  "type": "object"
}
