{
  "properties": {
    "apiVersion": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "properties": {
        "allowedUses": {
          "items": {
            "enum": [
              "Workload",
              "Tunnel",
              "LoadBalancer"
            ],
            "type": "string"
          },
          "type": "array",
          "x-kubernetes-list-type": "set"
        },
        "assignmentMode": {
          "default": "Automatic",
          "enum": [
            "Automatic",
            "Manual"
          ],
          "type": "string"
        },
        "blockSize": {
          "maximum": 128,
          "minimum": 0,
          "type": "integer"
        },
        "cidr": {
          "format": "cidr",
          "type": "string"
        },
        "disableBGPExport": {
          "type": "boolean"
        },
        "disabled": {
          "type": "boolean"
        },
        "ipipMode": {
          "enum": [
            "Never",
            "Always",
            "CrossSubnet"
          ],
          "type": "string"
        },
        "namespaceSelector": {
          "type": "string"
        },
        "natOutgoing": {
          "type": "boolean"
        },
        "nodeSelector": {
          "type": "string"
        },
        "vxlanMode": {
          "enum": [
            "Never",
            "Always",
            "CrossSubnet"
          ],
          "type": "string"
        }
      },
      "required": [
        "cidr"
      ],
      "type": "object",
      "additionalProperties": false
    }
  },
  "required": [
    "metadata",
    "spec"
  ],
  "type": "object"
}
