Skip to content

Commit 6cb46db

Browse files
committed
nit comment
1 parent cd0c2d5 commit 6cb46db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/azure-npm-to-cilium-validator/azure-npm-to-cilium-validator.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ func getNamedPortPolicies(policiesByNamespace map[string][]*networkingv1.Network
173173

174174
func checkNamedPortInPolicyRules(ports []networkingv1.NetworkPolicyPort) bool {
175175
for _, port := range ports {
176+
// If port is a string it is a named port
176177
if port.Port.Type == intstr.String {
177178
return true
178179
}

0 commit comments

Comments
 (0)