{
  "description": "AuthService is the Schema for the authservices API",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More 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. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "description": "AuthServiceSpec defines the desired state of AuthService",
      "properties": {
        "add_auth_headers": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "add_linkerd_headers": {
          "type": "boolean"
        },
        "allow_request_body": {
          "type": "boolean"
        },
        "allowed_authorization_headers": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "allowed_request_headers": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "auth_service": {
          "type": "string"
        },
        "failure_mode_allow": {
          "type": "boolean"
        },
        "include_body": {
          "properties": {
            "allow_partial": {
              "type": "boolean"
            },
            "max_bytes": {
              "description": "These aren't pointer types because they are required.",
              "type": "integer"
            }
          },
          "required": [
            "allow_partial",
            "max_bytes"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "path_prefix": {
          "type": "string"
        },
        "proto": {
          "enum": [
            "http",
            "grpc"
          ],
          "type": "string"
        },
        "protocol_version": {
          "enum": [
            "v2",
            "v3"
          ],
          "type": "string"
        },
        "status_on_error": {
          "description": "Why isn't this just an int??",
          "properties": {
            "code": {
              "type": "integer"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "timeout_ms": {
          "type": "integer"
        },
        "v3CircuitBreakers": {
          "items": {
            "properties": {
              "max_connections": {
                "type": "integer"
              },
              "max_pending_requests": {
                "type": "integer"
              },
              "max_requests": {
                "type": "integer"
              },
              "max_retries": {
                "type": "integer"
              },
              "priority": {
                "enum": [
                  "default",
                  "high"
                ],
                "type": "string"
              }
            },
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        },
        "v3StatsName": {
          "type": "string"
        }
      },
      "required": [
        "auth_service"
      ],
      "type": "object",
      "x-kubernetes-preserve-unknown-fields": true
    }
  },
  "type": "object"
}
