{
  "description": "AuditNetworkPolicy mirrors networking.k8s.io/v1.NetworkPolicy 1:1\nin spec shape. The kguardian-evaluator watches observed pod\ntraffic and reports flows that *would* be denied by this policy\nwithout actually dropping anything. Promote to enforced policy\nby re-applying the same spec under kind: NetworkPolicy.\n",
  "properties": {
    "apiVersion": {
      "type": [
        "string",
        "null"
      ]
    },
    "kind": {
      "type": [
        "string",
        "null"
      ]
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ]
    },
    "spec": {
      "additionalProperties": false,
      "description": "NetworkPolicySpec — identical to networking.k8s.io/v1\nNetworkPolicy. See\nhttps://kubernetes.io/docs/reference/generated/kubernetes-api/v1.32/#networkpolicyspec-v1-networking-k8s-io\n",
      "properties": {
        "egress": {
          "items": {
            "type": "object",
            "x-kubernetes-preserve-unknown-fields": true
          },
          "type": [
            "array",
            "null"
          ]
        },
        "ingress": {
          "items": {
            "type": "object",
            "x-kubernetes-preserve-unknown-fields": true
          },
          "type": [
            "array",
            "null"
          ]
        },
        "podSelector": {
          "type": "object",
          "x-kubernetes-preserve-unknown-fields": true
        },
        "policyTypes": {
          "items": {
            "enum": [
              "Ingress",
              "Egress"
            ],
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "required": [
        "podSelector"
      ],
      "type": "object"
    },
    "status": {
      "additionalProperties": false,
      "properties": {
        "evaluation": {
          "additionalProperties": false,
          "properties": {
            "flowsEvaluated": {
              "format": "int64",
              "type": [
                "integer",
                "null"
              ]
            },
            "flowsWouldDeny": {
              "format": "int64",
              "type": [
                "integer",
                "null"
              ]
            },
            "lastEvaluated": {
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "topOffenders": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "count": {
                    "format": "int64",
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "direction": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "dstPod": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "dstPort": {
                    "format": "int32",
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "protocol": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "srcPod": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "type": "object"
              },
              "maxItems": 50,
              "type": [
                "array",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "observedGeneration": {
          "format": "int64",
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    }
  },
  "required": [
    "spec"
  ],
  "type": "object"
}