Skip to content

Commit

Permalink
Update analyze.go
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielggg authored Apr 28, 2024
1 parent 441bd62 commit ec71aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/policy-assistant/pkg/cli/analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ func TrafficIterator(explainedPolicies *matcher.Policy, trafficPeer *matcher.Tra
trafficPeer.IP = pod.Status.PodIP
if (traffic.Source.Internal != nil && traffic.Destination.Internal != nil){
if traffic.Source.Internal.Workload != nil && traffic.Destination.Internal.Workload != nil {
for k, v := range trafficPeer.Internal.Workload {
for k, v := range traffic.Destination.Internal.Workload {
args := &AnalyzeArgs{}
kubeClient, err := kube.NewKubernetesForContext(args.Context)
utils.DoOrDie(err)
Expand Down

0 comments on commit ec71aaa

Please sign in to comment.