{
  "description": "Cluster-scoped sibling of AuditNetworkPolicy. The\nnamespaceSelector restricts which namespaces the policy\napplies to (nil or {} matches all). Within each matching\nnamespace the rest of the spec is evaluated exactly like a\nnamespaced AuditNetworkPolicy. Promote by re-applying the\nspec under a per-namespace networking.k8s.io/v1\nNetworkPolicy in each affected namespace.\n",
  "properties": {
    "apiVersion": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "properties": {
        "egress": {
          "items": {
            "type": "object",
            "x-kubernetes-preserve-unknown-fields": true
          },
          "type": "array"
        },
        "ingress": {
          "items": {
            "type": "object",
            "x-kubernetes-preserve-unknown-fields": true
          },
          "type": "array"
        },
        "namespaceSelector": {
          "type": "object",
          "x-kubernetes-preserve-unknown-fields": true
        },
        "podSelector": {
          "type": "object",
          "x-kubernetes-preserve-unknown-fields": true
        },
        "policyTypes": {
          "items": {
            "enum": [
              "Ingress",
              "Egress"
            ],
            "type": "string"
          },
          "maxItems": 2,
          "type": "array",
          "x-kubernetes-list-type": "set"
        }
      },
      "required": [
        "podSelector"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "properties": {
        "evaluation": {
          "properties": {
            "flowsEvaluated": {
              "format": "int64",
              "type": "integer"
            },
            "flowsWouldDeny": {
              "format": "int64",
              "type": "integer"
            },
            "lastEvaluated": {
              "format": "date-time",
              "type": "string"
            },
            "topOffenders": {
              "items": {
                "properties": {
                  "count": {
                    "format": "int64",
                    "type": "integer"
                  },
                  "direction": {
                    "type": "string"
                  },
                  "dstPod": {
                    "type": "string"
                  },
                  "dstPort": {
                    "format": "int32",
                    "type": "integer"
                  },
                  "protocol": {
                    "type": "string"
                  },
                  "srcPod": {
                    "type": "string"
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "maxItems": 50,
              "type": "array"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "observedGeneration": {
          "format": "int64",
          "type": "integer"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "required": [
    "spec"
  ],
  "type": "object"
}
