{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "apiVersion": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "properties": {
        "auth": {
          "properties": {
            "disableElasticUser": {
              "type": "boolean"
            },
            "fileRealm": {
              "items": {
                "properties": {
                  "secretName": {
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "roles": {
              "items": {
                "properties": {
                  "secretName": {
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": "array"
            }
          },
          "type": "object"
        },
        "http": {
          "properties": {
            "service": {
              "properties": {
                "metadata": {
                  "properties": {
                    "annotations": {
                      "additionalProperties": {
                        "type": "string"
                      },
                      "type": "object"
                    },
                    "finalizers": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "labels": {
                      "additionalProperties": {
                        "type": "string"
                      },
                      "type": "object"
                    },
                    "name": {
                      "type": "string"
                    },
                    "namespace": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "spec": {
                  "properties": {
                    "allocateLoadBalancerNodePorts": {
                      "type": "boolean"
                    },
                    "clusterIP": {
                      "type": "string"
                    },
                    "clusterIPs": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array",
                      "x-kubernetes-list-type": "atomic"
                    },
                    "externalIPs": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array",
                      "x-kubernetes-list-type": "atomic"
                    },
                    "externalName": {
                      "type": "string"
                    },
                    "externalTrafficPolicy": {
                      "type": "string"
                    },
                    "healthCheckNodePort": {
                      "format": "int32",
                      "type": "integer"
                    },
                    "internalTrafficPolicy": {
                      "type": "string"
                    },
                    "ipFamilies": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array",
                      "x-kubernetes-list-type": "atomic"
                    },
                    "ipFamilyPolicy": {
                      "type": "string"
                    },
                    "loadBalancerClass": {
                      "type": "string"
                    },
                    "loadBalancerIP": {
                      "type": "string"
                    },
                    "loadBalancerSourceRanges": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array",
                      "x-kubernetes-list-type": "atomic"
                    },
                    "ports": {
                      "items": {
                        "properties": {
                          "appProtocol": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "nodePort": {
                            "format": "int32",
                            "type": "integer"
                          },
                          "port": {
                            "format": "int32",
                            "type": "integer"
                          },
                          "protocol": {
                            "default": "TCP",
                            "type": "string"
                          },
                          "targetPort": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "string"
                              }
                            ],
                            "x-kubernetes-int-or-string": true
                          }
                        },
                        "required": [
                          "port"
                        ],
                        "type": "object"
                      },
                      "type": "array",
                      "x-kubernetes-list-map-keys": [
                        "port",
                        "protocol"
                      ],
                      "x-kubernetes-list-type": "map"
                    },
                    "publishNotReadyAddresses": {
                      "type": "boolean"
                    },
                    "selector": {
                      "additionalProperties": {
                        "type": "string"
                      },
                      "type": "object",
                      "x-kubernetes-map-type": "atomic"
                    },
                    "sessionAffinity": {
                      "type": "string"
                    },
                    "sessionAffinityConfig": {
                      "properties": {
                        "clientIP": {
                          "properties": {
                            "timeoutSeconds": {
                              "format": "int32",
                              "type": "integer"
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    "trafficDistribution": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              },
              "type": "object"
            },
            "tls": {
              "properties": {
                "certificate": {
                  "properties": {
                    "secretName": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "selfSignedCertificate": {
                  "properties": {
                    "disabled": {
                      "type": "boolean"
                    },
                    "subjectAltNames": {
                      "items": {
                        "properties": {
                          "dns": {
                            "type": "string"
                          },
                          "ip": {
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              },
              "type": "object"
            }
          },
          "type": "object"
        },
        "image": {
          "type": "string"
        },
        "monitoring": {
          "properties": {
            "logs": {
              "properties": {
                "elasticsearchRefs": {
                  "items": {
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "namespace": {
                        "type": "string"
                      },
                      "secretName": {
                        "type": "string"
                      },
                      "serviceName": {
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "type": "object"
            },
            "metrics": {
              "properties": {
                "elasticsearchRefs": {
                  "items": {
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "namespace": {
                        "type": "string"
                      },
                      "secretName": {
                        "type": "string"
                      },
                      "serviceName": {
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "type": "object"
            }
          },
          "type": "object"
        },
        "nodeSets": {
          "items": {
            "properties": {
              "config": {
                "type": "object",
                "x-kubernetes-preserve-unknown-fields": true
              },
              "count": {
                "format": "int32",
                "type": "integer"
              },
              "name": {
                "maxLength": 23,
                "pattern": "[a-zA-Z0-9-]+",
                "type": "string"
              },
              "podTemplate": {
                "type": "object",
                "x-kubernetes-preserve-unknown-fields": true
              },
              "volumeClaimTemplates": {
                "items": {
                  "properties": {
                    "apiVersion": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "metadata": {
                      "properties": {
                        "annotations": {
                          "additionalProperties": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "finalizers": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "labels": {
                          "additionalProperties": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "name": {
                          "type": "string"
                        },
                        "namespace": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "spec": {
                      "properties": {
                        "accessModes": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array",
                          "x-kubernetes-list-type": "atomic"
                        },
                        "dataSource": {
                          "properties": {
                            "apiGroup": {
                              "type": "string"
                            },
                            "kind": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "name"
                          ],
                          "type": "object",
                          "x-kubernetes-map-type": "atomic"
                        },
                        "dataSourceRef": {
                          "properties": {
                            "apiGroup": {
                              "type": "string"
                            },
                            "kind": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "namespace": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "name"
                          ],
                          "type": "object"
                        },
                        "resources": {
                          "properties": {
                            "limits": {
                              "additionalProperties": {
                                "anyOf": [
                                  {
                                    "type": "integer"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ],
                                "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
                                "x-kubernetes-int-or-string": true
                              },
                              "type": "object"
                            },
                            "requests": {
                              "additionalProperties": {
                                "anyOf": [
                                  {
                                    "type": "integer"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ],
                                "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
                                "x-kubernetes-int-or-string": true
                              },
                              "type": "object"
                            }
                          },
                          "type": "object"
                        },
                        "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"
                        },
                        "storageClassName": {
                          "type": "string"
                        },
                        "volumeAttributesClassName": {
                          "type": "string"
                        },
                        "volumeMode": {
                          "type": "string"
                        },
                        "volumeName": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "name"
            ],
            "type": "object"
          },
          "minItems": 1,
          "type": "array"
        },
        "podDisruptionBudget": {
          "properties": {
            "metadata": {
              "properties": {
                "annotations": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "finalizers": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "labels": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "name": {
                  "type": "string"
                },
                "namespace": {
                  "type": "string"
                }
              },
              "type": "object"
            },
            "spec": {
              "properties": {
                "maxUnavailable": {
                  "anyOf": [
                    {
                      "type": "integer"
                    },
                    {
                      "type": "string"
                    }
                  ],
                  "x-kubernetes-int-or-string": true
                },
                "minAvailable": {
                  "anyOf": [
                    {
                      "type": "integer"
                    },
                    {
                      "type": "string"
                    }
                  ],
                  "x-kubernetes-int-or-string": true
                },
                "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"
                },
                "unhealthyPodEvictionPolicy": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "type": "object"
        },
        "remoteClusterServer": {
          "properties": {
            "enabled": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "remoteClusters": {
          "items": {
            "properties": {
              "apiKey": {
                "properties": {
                  "access": {
                    "properties": {
                      "replication": {
                        "properties": {
                          "names": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          }
                        },
                        "required": [
                          "names"
                        ],
                        "type": "object"
                      },
                      "search": {
                        "properties": {
                          "allow_restricted_indices": {
                            "type": "boolean"
                          },
                          "field_security": {
                            "properties": {
                              "except": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "grant": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              }
                            },
                            "required": [
                              "except",
                              "grant"
                            ],
                            "type": "object"
                          },
                          "names": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "query": {
                            "type": "object",
                            "x-kubernetes-preserve-unknown-fields": true
                          }
                        },
                        "required": [
                          "names"
                        ],
                        "type": "object"
                      }
                    },
                    "type": "object"
                  }
                },
                "required": [
                  "access"
                ],
                "type": "object"
              },
              "elasticsearchRef": {
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "namespace": {
                    "type": "string"
                  },
                  "serviceName": {
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "name": {
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "name"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "revisionHistoryLimit": {
          "format": "int32",
          "type": "integer"
        },
        "secureSettings": {
          "items": {
            "properties": {
              "entries": {
                "items": {
                  "properties": {
                    "key": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "key"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "secretName": {
                "type": "string"
              }
            },
            "required": [
              "secretName"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "serviceAccountName": {
          "type": "string"
        },
        "transport": {
          "properties": {
            "service": {
              "properties": {
                "metadata": {
                  "properties": {
                    "annotations": {
                      "additionalProperties": {
                        "type": "string"
                      },
                      "type": "object"
                    },
                    "finalizers": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "labels": {
                      "additionalProperties": {
                        "type": "string"
                      },
                      "type": "object"
                    },
                    "name": {
                      "type": "string"
                    },
                    "namespace": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "spec": {
                  "properties": {
                    "allocateLoadBalancerNodePorts": {
                      "type": "boolean"
                    },
                    "clusterIP": {
                      "type": "string"
                    },
                    "clusterIPs": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array",
                      "x-kubernetes-list-type": "atomic"
                    },
                    "externalIPs": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array",
                      "x-kubernetes-list-type": "atomic"
                    },
                    "externalName": {
                      "type": "string"
                    },
                    "externalTrafficPolicy": {
                      "type": "string"
                    },
                    "healthCheckNodePort": {
                      "format": "int32",
                      "type": "integer"
                    },
                    "internalTrafficPolicy": {
                      "type": "string"
                    },
                    "ipFamilies": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array",
                      "x-kubernetes-list-type": "atomic"
                    },
                    "ipFamilyPolicy": {
                      "type": "string"
                    },
                    "loadBalancerClass": {
                      "type": "string"
                    },
                    "loadBalancerIP": {
                      "type": "string"
                    },
                    "loadBalancerSourceRanges": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array",
                      "x-kubernetes-list-type": "atomic"
                    },
                    "ports": {
                      "items": {
                        "properties": {
                          "appProtocol": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "nodePort": {
                            "format": "int32",
                            "type": "integer"
                          },
                          "port": {
                            "format": "int32",
                            "type": "integer"
                          },
                          "protocol": {
                            "default": "TCP",
                            "type": "string"
                          },
                          "targetPort": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "string"
                              }
                            ],
                            "x-kubernetes-int-or-string": true
                          }
                        },
                        "required": [
                          "port"
                        ],
                        "type": "object"
                      },
                      "type": "array",
                      "x-kubernetes-list-map-keys": [
                        "port",
                        "protocol"
                      ],
                      "x-kubernetes-list-type": "map"
                    },
                    "publishNotReadyAddresses": {
                      "type": "boolean"
                    },
                    "selector": {
                      "additionalProperties": {
                        "type": "string"
                      },
                      "type": "object",
                      "x-kubernetes-map-type": "atomic"
                    },
                    "sessionAffinity": {
                      "type": "string"
                    },
                    "sessionAffinityConfig": {
                      "properties": {
                        "clientIP": {
                          "properties": {
                            "timeoutSeconds": {
                              "format": "int32",
                              "type": "integer"
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    "trafficDistribution": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              },
              "type": "object"
            },
            "tls": {
              "properties": {
                "certificate": {
                  "properties": {
                    "secretName": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "certificateAuthorities": {
                  "properties": {
                    "configMapName": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "otherNameSuffix": {
                  "type": "string"
                },
                "selfSignedCertificates": {
                  "properties": {
                    "disabled": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "subjectAltNames": {
                  "items": {
                    "properties": {
                      "dns": {
                        "type": "string"
                      },
                      "ip": {
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "type": "object"
            }
          },
          "type": "object"
        },
        "updateStrategy": {
          "properties": {
            "changeBudget": {
              "properties": {
                "maxSurge": {
                  "format": "int32",
                  "type": "integer"
                },
                "maxUnavailable": {
                  "format": "int32",
                  "type": "integer"
                }
              },
              "type": "object"
            }
          },
          "type": "object"
        },
        "version": {
          "type": "string"
        },
        "volumeClaimDeletePolicy": {
          "enum": [
            "DeleteOnScaledownOnly",
            "DeleteOnScaledownAndClusterDeletion"
          ],
          "type": "string"
        }
      },
      "required": [
        "nodeSets",
        "version"
      ],
      "type": "object"
    },
    "status": {
      "properties": {
        "availableNodes": {
          "format": "int32",
          "type": "integer"
        },
        "conditions": {
          "items": {
            "properties": {
              "lastTransitionTime": {
                "format": "date-time",
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "status",
              "type"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "health": {
          "type": "string"
        },
        "inProgressOperations": {
          "properties": {
            "downscale": {
              "properties": {
                "lastUpdatedTime": {
                  "format": "date-time",
                  "type": "string"
                },
                "nodes": {
                  "items": {
                    "properties": {
                      "explanation": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "shutdownStatus": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "name",
                      "shutdownStatus"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "stalled": {
                  "type": "boolean"
                }
              },
              "type": "object"
            },
            "upgrade": {
              "properties": {
                "lastUpdatedTime": {
                  "format": "date-time",
                  "type": "string"
                },
                "nodes": {
                  "items": {
                    "properties": {
                      "message": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "predicate": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "name",
                      "status"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "type": "object"
            },
            "upscale": {
              "properties": {
                "lastUpdatedTime": {
                  "format": "date-time",
                  "type": "string"
                },
                "nodes": {
                  "items": {
                    "properties": {
                      "message": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "name",
                      "status"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "type": "object"
            }
          },
          "required": [
            "downscale",
            "upgrade",
            "upscale"
          ],
          "type": "object"
        },
        "monitoringAssociationStatus": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "observedGeneration": {
          "format": "int64",
          "type": "integer"
        },
        "phase": {
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}
