Skip to content

Commit

Permalink
Merge pull request #528 from seswarrajan/dev
Browse files Browse the repository at this point in the history
Fix for ns,podname setup in discovery-engine for container ns
  • Loading branch information
nyrahul authored Aug 17, 2022
2 parents cb9d5d1 + 933e05a commit 07d7334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/kubearmor.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func ConvertKubeArmorLogToKnoxSystemLog(relayLog *pb.Log) (types.KnoxSystemLog,
knoxSystemLog.PodName = types.PolicyDiscoveryVMPodName
}

if relayLog.Type == "ContainerLog" {
if relayLog.Type == "ContainerLog" && relayLog.NamespaceName == types.PolicyDiscoveryContainerNamespace {
knoxSystemLog.ContainerName = relayLog.ContainerName
knoxSystemLog.Namespace = types.PolicyDiscoveryContainerNamespace
knoxSystemLog.PodName = types.PolicyDiscoveryContainerPodName
Expand Down

0 comments on commit 07d7334

Please sign in to comment.