{
  "properties": {
    "spec": {
      "properties": {
        "identity": {
          "description": "Fairness for individual identities; each separate client, grouped by identity, will have this rate-limit. The requestsPerSecond value should be less than or equal to the total requestsPerSecond (if set).",
          "properties": {
            "requestsPerSecond": {
              "format": "int64",
              "type": "integer"
            }
          },
          "required": [
            "requestsPerSecond"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "overrides": {
          "description": "Overrides for traffic from a specific client. The requestsPerSecond value should be less than or equal to the total requestsPerSecond (if set).",
          "items": {
            "properties": {
              "clientRefs": {
                "items": {
                  "properties": {
                    "group": {
                      "description": "Group is the group of the referent. When empty, the Kubernetes core API group is inferred.",
                      "maxLength": 253,
                      "pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                      "type": "string"
                    },
                    "kind": {
                      "description": "Kind is the kind of the referent.",
                      "maxLength": 63,
                      "minLength": 1,
                      "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
                      "type": "string"
                    },
                    "name": {
                      "description": "Name is the name of the referent.",
                      "maxLength": 253,
                      "minLength": 1,
                      "type": "string"
                    },
                    "namespace": {
                      "description": "Namespace is the namespace of the referent. When unspecified (or empty string), this refers to the local namespace of the Policy.",
                      "maxLength": 63,
                      "minLength": 1,
                      "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "kind",
                    "name"
                  ],
                  "type": "object",
                  "additionalProperties": false
                },
                "type": "array"
              },
              "requestsPerSecond": {
                "format": "int64",
                "type": "integer"
              }
            },
            "required": [
              "requestsPerSecond",
              "clientRefs"
            ],
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        },
        "targetRef": {
          "description": "TargetRef references a resource to which the rate limit policy applies. Only Server is allowed.",
          "properties": {
            "group": {
              "description": "Group is the group of the referent. When empty, the Kubernetes core API group is inferred.",
              "maxLength": 253,
              "pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
              "type": "string"
            },
            "kind": {
              "description": "Kind is the kind of the referent.",
              "maxLength": 63,
              "minLength": 1,
              "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
              "type": "string"
            },
            "name": {
              "description": "Name is the name of the referent.",
              "maxLength": 253,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "kind",
            "name"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "total": {
          "description": "Overall rate-limit, which all traffic coming to this target should abide. If unset no overall limit is applied.",
          "properties": {
            "requestsPerSecond": {
              "format": "int64",
              "type": "integer"
            }
          },
          "required": [
            "requestsPerSecond"
          ],
          "type": "object",
          "additionalProperties": false
        }
      },
      "required": [
        "targetRef"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "properties": {
        "conditions": {
          "items": {
            "properties": {
              "lastTransitionTime": {
                "description": "lastTransitionTime is the last time the condition transitioned from one status to another.",
                "format": "date-time",
                "type": "string"
              },
              "message": {
                "description": "message is a human readable message indicating details about the transition. This may be an empty string.",
                "maxLength": 32768,
                "type": "string"
              },
              "reason": {
                "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.",
                "maxLength": 1024,
                "minLength": 1,
                "pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$",
                "type": "string"
              },
              "status": {
                "description": "status of the condition (one of True, False, Unknown)",
                "enum": [
                  "True",
                  "False",
                  "Unknown"
                ],
                "type": "string"
              },
              "type": {
                "description": "type of the condition in CamelCase or in foo.example.com/CamelCase.",
                "maxLength": 316,
                "pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$",
                "type": "string"
              }
            },
            "type": "object",
            "additionalProperties": false
          },
          "required": [
            "status",
            "type"
          ],
          "type": "array"
        },
        "targetRef": {
          "properties": {
            "group": {
              "default": "policy.linkerd.io",
              "maxLength": 253,
              "pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
              "type": "string"
            },
            "kind": {
              "default": "Server",
              "maxLength": 63,
              "minLength": 1,
              "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
              "type": "string"
            },
            "name": {
              "maxLength": 253,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "name"
          ],
          "type": "object",
          "additionalProperties": false
        }
      },
      "required": [
        "targetRef"
      ],
      "type": "object",
      "additionalProperties": false
    }
  },
  "required": [
    "spec"
  ],
  "type": "object"
}
