{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "apiVersion": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "properties": {
        "expectedIPs": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "interfaceName": {
          "type": "string"
        },
        "node": {
          "type": "string"
        },
        "ports": {
          "items": {
            "properties": {
              "name": {
                "type": "string"
              },
              "port": {
                "type": "integer"
              },
              "protocol": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "string"
                  }
                ],
                "pattern": "^.*",
                "x-kubernetes-int-or-string": true
              }
            },
            "required": [
              "name",
              "port",
              "protocol"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "profiles": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}
