From be7b3c18c8eba3fab94621a24eaf0bfc55208025 Mon Sep 17 00:00:00 2001 From: Rotem Refael Date: Sun, 19 Jul 2026 14:59:12 +0300 Subject: [PATCH] feat: add profile-state MissingRuntimeInfoReason values Add ProfileStillLearning(5), AwaitingScanUpdate(6) and ProfileTooLarge(7), derived from the workload's own ApplicationProfile state. Used by postgres-connector to report a per-workload missing-runtime-info reason on the vulnerabilities Workloads page instead of a cluster-wide heuristic. Co-Authored-By: Claude Fable 5 --- armotypes/networkpolicies.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/armotypes/networkpolicies.go b/armotypes/networkpolicies.go index 55141957..45d1209c 100644 --- a/armotypes/networkpolicies.go +++ b/armotypes/networkpolicies.go @@ -17,6 +17,11 @@ const ( UnscheduledNodeAgentPods MissingRuntimeInfoReason = 2 IncompatibleKernel MissingRuntimeInfoReason = 3 RuncNotFound MissingRuntimeInfoReason = 4 + // reasons 5-7 are derived from the state of the workload's own ApplicationProfile, + // complementing the node-agent (cluster-level) reasons above + ProfileStillLearning MissingRuntimeInfoReason = 5 + AwaitingScanUpdate MissingRuntimeInfoReason = 6 + ProfileTooLarge MissingRuntimeInfoReason = 7 ) // NetworkPoliciesWorkload is used store information about workloads