{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "apiVersion": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "properties": {
        "images": {
          "items": {
            "properties": {
              "image": {
                "type": "string"
              },
              "major": {
                "minimum": 10,
                "type": "integer"
              }
            },
            "required": [
              "image",
              "major"
            ],
            "type": "object"
          },
          "maxItems": 8,
          "minItems": 1,
          "type": "array",
          "x-kubernetes-validations": [
            {
              "message": "Images must have unique major versions",
              "rule": "self.all(e, self.filter(f, f.major==e.major).size() == 1)"
            }
          ]
        }
      },
      "required": [
        "images"
      ],
      "type": "object"
    }
  },
  "required": [
    "metadata",
    "spec"
  ],
  "type": "object"
}
