You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
table.Append([]string{"NetworkPolicy with endPort", "❌", "Policies Affected:"})
435
434
for_, policy:=rangeingressEndportNetworkPolicy {
436
-
policyNamespace:=strings.Split(policy, "/")[0]
437
-
policyName:=strings.Split(policy, "/")[1]
438
-
table.Append([]string{"", "❌", fmt.Sprintf("Found NetworkPolicy: \033[31m%s\033[0m with Ingress endPort field in namespace: \033[31m%s\033[0m\n", policyName, policyNamespace)})
435
+
table.Append([]string{"", "❌", fmt.Sprintf("\033[31m%s\033[0m with Ingress endPort field", policy)})
439
436
}
440
437
for_, policy:=rangeegressEndportNetworkPolicy {
441
-
policyNamespace:=strings.Split(policy, "/")[0]
442
-
policyName:=strings.Split(policy, "/")[1]
443
-
table.Append([]string{"", "❌", fmt.Sprintf("Found NetworkPolicy: \033[31m%s\033[0m\n with Egress endPort field in namespace: \033[31m%s\033[0m\n", policyName, policyNamespace)})
438
+
table.Append([]string{"", "❌", fmt.Sprintf("\033[31m%s\033[0m with Egress endPort field", policy)})
table.Append([]string{"NetworkPolicy with CIDR", "❌", "Policies Affected:"})
453
448
for_, policy:=rangeingressPoliciesWithCIDR {
454
-
policyNamespace:=strings.Split(policy, "/")[0]
455
-
policyName:=strings.Split(policy, "/")[1]
456
-
table.Append([]string{"", "❌", fmt.Sprintf("Found NetworkPolicy: \033[31m%s\033[0m with Ingress CIDR field in namespace: \033[31m%s\033[0m\n", policyName, policyNamespace)})
449
+
table.Append([]string{"", "❌", fmt.Sprintf("\033[31m%s\033[0m with Ingress CIDR field", policy)})
457
450
}
458
451
for_, policy:=rangeegressPoliciesWithCIDR {
459
-
policyNamespace:=strings.Split(policy, "/")[0]
460
-
policyName:=strings.Split(policy, "/")[1]
461
-
table.Append([]string{"", "❌", fmt.Sprintf("Found NetworkPolicy: \033[31m%s\033[0m with Egress CIDR field in namespace: \033[31m%s\033[0m\n", policyName, policyNamespace)})
452
+
table.Append([]string{"", "❌", fmt.Sprintf("\033[31m%s\033[0m with Egress CIDR field\n", policy)})
table.Append([]string{"NetworkPolicy with Named Port", "❌", "Policies Affected:"})
471
462
for_, policy:=rangeingressPoliciesWithNamedPort {
472
-
policyNamespace:=strings.Split(policy, "/")[0]
473
-
policyName:=strings.Split(policy, "/")[1]
474
-
table.Append([]string{"", "❌", fmt.Sprintf("Found NetworkPolicy: \033[31m%s\033[0m with Ingress Named Port field in namespace: \033[31m%s\033[0m\n", policyName, policyNamespace)})
463
+
table.Append([]string{"", "❌", fmt.Sprintf("\033[31m%s\033[0m with Ingress Named Port field", policy)})
475
464
}
476
465
for_, policy:=rangeegressPoliciesWithNamedPort {
477
-
policyNamespace:=strings.Split(policy, "/")[0]
478
-
policyName:=strings.Split(policy, "/")[1]
479
-
table.Append([]string{"", "❌", fmt.Sprintf("Found NetworkPolicy: \033[31m%s\033[0m with Egress Named Port field in namespace: \033[31m%s\033[0m\n", policyName, policyNamespace)})
466
+
table.Append([]string{"", "❌", fmt.Sprintf("\033[31m%s\033[0m with Egress Named Port field", policy)})
0 commit comments