Skip to content

Commit

Permalink
Update pkg/netpol/connlist/internal/ingressanalyzer/ingress_analyzer.go
Browse files Browse the repository at this point in the history
Co-authored-by: Adi Sosnovich <82078442+adisos@users.noreply.github.com>
  • Loading branch information
shireenf-ibm and adisos authored Oct 7, 2024
1 parent 38a693b commit 4adf3c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func (ia *IngressAnalyzer) getIngressPeerConnection(peer eval.Peer, actualServic
if err != nil {
return nil, err
}
// only TCP ports are acceptable
// only TCP ports are acceptable for Ingress resource
if protocol != string(corev1.ProtocolTCP) || portInt < 0 { // no matching port for the given named port
continue
}
Expand Down

0 comments on commit 4adf3c8

Please sign in to comment.