Skip to content
Open

test #4148

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion npm/pkg/controlplane/translation/translatePolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func namedPortRule(portRule *networkingv1.NetworkPolicyPort) (*ipsets.Translated
}

func portRule(ruleIPSets []*ipsets.TranslatedIPSet, acl *policies.ACLPolicy, portRule *networkingv1.NetworkPolicyPort, portType netpolPortType) []*ipsets.TranslatedIPSet {
// port rule is always applied to destination side.
// port rule is always applied to destination side..
Copy link

Copilot AI Nov 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra period at the end of the comment. The comment should end with a single period.

Suggested change
// port rule is always applied to destination side..
// port rule is always applied to destination side.

Copilot uses AI. Check for mistakes.
if portType == namedPortType {
namedPortIPSet, namedPortRuleDstList, protocol := namedPortRule(portRule)
acl.AddSetInfo([]policies.SetInfo{namedPortRuleDstList})
Expand Down
Loading