{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "apiVersion": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "properties": {
        "clusterName": {
          "minLength": 1,
          "type": "string"
        },
        "minReadySeconds": {
          "format": "int32",
          "type": "integer"
        },
        "paused": {
          "type": "boolean"
        },
        "progressDeadlineSeconds": {
          "format": "int32",
          "type": "integer"
        },
        "replicas": {
          "default": 1,
          "format": "int32",
          "type": "integer"
        },
        "revisionHistoryLimit": {
          "format": "int32",
          "type": "integer"
        },
        "selector": {
          "properties": {
            "matchExpressions": {
              "items": {
                "properties": {
                  "key": {
                    "type": "string"
                  },
                  "operator": {
                    "type": "string"
                  },
                  "values": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array",
                    "x-kubernetes-list-type": "atomic"
                  }
                },
                "required": [
                  "key",
                  "operator"
                ],
                "type": "object"
              },
              "type": "array",
              "x-kubernetes-list-type": "atomic"
            },
            "matchLabels": {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            }
          },
          "type": "object",
          "x-kubernetes-map-type": "atomic"
        },
        "strategy": {
          "properties": {
            "rollingUpdate": {
              "properties": {
                "deletePolicy": {
                  "enum": [
                    "Random",
                    "Newest",
                    "Oldest"
                  ],
                  "type": "string"
                },
                "maxSurge": {
                  "anyOf": [
                    {
                      "type": "integer"
                    },
                    {
                      "type": "string"
                    }
                  ],
                  "x-kubernetes-int-or-string": true
                },
                "maxUnavailable": {
                  "anyOf": [
                    {
                      "type": "integer"
                    },
                    {
                      "type": "string"
                    }
                  ],
                  "x-kubernetes-int-or-string": true
                }
              },
              "type": "object"
            },
            "type": {
              "enum": [
                "RollingUpdate",
                "OnDelete"
              ],
              "type": "string"
            }
          },
          "type": "object"
        },
        "template": {
          "properties": {
            "metadata": {
              "properties": {
                "annotations": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "labels": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                }
              },
              "type": "object"
            },
            "spec": {
              "properties": {
                "bootstrap": {
                  "properties": {
                    "configRef": {
                      "properties": {
                        "apiVersion": {
                          "type": "string"
                        },
                        "fieldPath": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "namespace": {
                          "type": "string"
                        },
                        "resourceVersion": {
                          "type": "string"
                        },
                        "uid": {
                          "type": "string"
                        }
                      },
                      "type": "object",
                      "x-kubernetes-map-type": "atomic"
                    },
                    "dataSecretName": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "clusterName": {
                  "minLength": 1,
                  "type": "string"
                },
                "failureDomain": {
                  "type": "string"
                },
                "infrastructureRef": {
                  "properties": {
                    "apiVersion": {
                      "type": "string"
                    },
                    "fieldPath": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "namespace": {
                      "type": "string"
                    },
                    "resourceVersion": {
                      "type": "string"
                    },
                    "uid": {
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "x-kubernetes-map-type": "atomic"
                },
                "nodeDrainTimeout": {
                  "type": "string"
                },
                "providerID": {
                  "type": "string"
                },
                "version": {
                  "type": "string"
                }
              },
              "required": [
                "bootstrap",
                "clusterName",
                "infrastructureRef"
              ],
              "type": "object"
            }
          },
          "type": "object"
        }
      },
      "required": [
        "clusterName",
        "selector",
        "template"
      ],
      "type": "object"
    },
    "status": {
      "properties": {
        "availableReplicas": {
          "format": "int32",
          "type": "integer"
        },
        "conditions": {
          "items": {
            "properties": {
              "lastTransitionTime": {
                "format": "date-time",
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "reason": {
                "type": "string"
              },
              "severity": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "status",
              "type"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "observedGeneration": {
          "format": "int64",
          "type": "integer"
        },
        "phase": {
          "type": "string"
        },
        "readyReplicas": {
          "format": "int32",
          "type": "integer"
        },
        "replicas": {
          "format": "int32",
          "type": "integer"
        },
        "selector": {
          "type": "string"
        },
        "unavailableReplicas": {
          "format": "int32",
          "type": "integer"
        },
        "updatedReplicas": {
          "format": "int32",
          "type": "integer"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}
