diff --git a/src/networkpolicy/networkPolicy.go b/src/networkpolicy/networkPolicy.go index 8997033f..b9b55ea4 100644 --- a/src/networkpolicy/networkPolicy.go +++ b/src/networkpolicy/networkPolicy.go @@ -1944,6 +1944,10 @@ func convertKnoxNetworkLogToKnoxNetworkPolicy(log *types.KnoxNetworkLog, pods [] } else if log.Direction == "INGRESS" { ingressPolicy = &iePolicy } + // Update namespace + if iePolicy.Metadata["status"] == "latest" { + iePolicy.Metadata["namespace"] = log.SrcNamespace + } } if !isValidPolicy(ingressPolicy) {