{
  "description": "SplitHorizonDNSConfig is the Schema for the splithorizondnsconfigs API.",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore 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.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "description": "Spec defines the desired state of SplitHorizonDNSConfig",
      "properties": {
        "baseDomainNameSuffix": {
          "description": "BaseDomainNameSuffix is the base domain name suffix for generating domain names for each Pod in ReplicaSet.\nIt should be a valid domain name suffix.",
          "example": "example.com",
          "minLength": 3,
          "pattern": "^([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}$",
          "type": "string"
        },
        "tls": {
          "description": "TLS is the TLS configuration for the split-horizon DNS configuration.",
          "properties": {
            "certificate": {
              "description": "Certificate is the TLS certificate and key for the split-horizon DNS configuration.",
              "properties": {
                "ca.crt": {
                  "description": "CACert is based64 encoded ca.pem file content.\nIt is provided as a write-only input field for convenience.\nWhen this field is set, a webhook writes this value in the Secret specified by `.spec.tls.secretName`\nand empties this field.\nThis field is not stored in the API.",
                  "type": "string"
                },
                "ca.key": {
                  "description": "CA Private Key is based64 encoded ca-key.pem file content.\nIt is provided as a write-only input field for convenience.\nWhen this field is set, a webhook writes this value in the Secret specified by `.spec.tls.secretName`\nand empties this field.\nThis field is not stored in the API.",
                  "type": "string"
                }
              },
              "required": [
                "ca.crt",
                "ca.key"
              ],
              "type": "object",
              "additionalProperties": false
            },
            "secretName": {
              "description": "SecretName is the name of the secret containing the TLS certificate and key for the split-horizon DNS configuration.",
              "example": "my-tls-secret",
              "type": "string"
            }
          },
          "required": [
            "secretName"
          ],
          "type": "object",
          "additionalProperties": false
        }
      },
      "required": [
        "baseDomainNameSuffix",
        "tls"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "default": {
        "inUse": false
      },
      "description": "Status defines the observed state of SplitHorizonDNSConfig",
      "properties": {
        "inUse": {
          "default": false,
          "description": "InUse is a flag that indicates if the config is used by any DB cluster.",
          "type": "boolean"
        },
        "lastObservedGeneration": {
          "description": "LastObservedGeneration is the most recent generation observed for this SplitHorizonDNSConfig.",
          "format": "int64",
          "type": "integer"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "required": [
    "spec"
  ],
  "type": "object"
}
