{
  "description": "ContainerRestartRule describes how a container exit is handled.",
  "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",
        "null"
      ]
    },
    "exitCodes": {
      "description": "ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes.",
      "properties": {
        "operator": {
          "description": "Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the\n  set of specified values.\n- NotIn: the requirement is satisfied if the container exit code is\n  not in the set of specified values.",
          "type": "string"
        },
        "values": {
          "description": "Specifies the set of values to check for container exit codes. At most 255 elements are allowed.",
          "items": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "type": [
            "array",
            "null"
          ],
          "x-kubernetes-list-type": "set"
        }
      },
      "required": [
        "operator"
      ],
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "action"
  ],
  "type": "object",
  "additionalProperties": false,
  "$schema": "http://json-schema.org/schema#"
}