File tree Expand file tree Collapse file tree
internal/pkg/daemon/enricher Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -448,15 +448,20 @@ func (e *JsonEnricher) dispatchSeccompLine(
448448 }
449449
450450 if logBucket .ContainerInfo != nil {
451+ podName := logBucket .ContainerInfo .PodName
452+ namespace := logBucket .ContainerInfo .Namespace
453+ containerName := logBucket .ContainerInfo .ContainerName
454+
451455 resource = map [string ]string {
452- "pod" : logBucket . ContainerInfo . PodName ,
453- "namespace" : logBucket . ContainerInfo . Namespace ,
454- "container" : logBucket . ContainerInfo . ContainerName ,
456+ "pod" : podName ,
457+ "namespace" : namespace ,
458+ "container" : containerName ,
455459 }
456460 }
457461
462+ nodeNameCopy := nodeName
458463 node := map [string ]string {
459- "name" : nodeName ,
464+ "name" : nodeNameCopy ,
460465 }
461466
462467 isoTimestamp , err := common .AuditTimeToIso (logBucket .TimestampID )
You can’t perform that action at this time.
0 commit comments