We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77ab954 commit dfcc37bCopy full SHA for dfcc37b
pkg/kube/netpol/policies.go
@@ -614,7 +614,7 @@ spec:
614
func AllowNoEgressFromNamespace(namespace string) *networkingv1.NetworkPolicy {
615
return &networkingv1.NetworkPolicy{
616
ObjectMeta: metav1.ObjectMeta{
617
- Name: fmt.Sprintf("allow-no-egress-from-namespace"),
+ Name: "allow-no-egress-from-namespace",
618
Namespace: namespace,
619
},
620
Spec: networkingv1.NetworkPolicySpec{
@@ -695,7 +695,7 @@ spec:
695
func AllowNoIngressNorEgress(namespace string, targetLabels map[string]string) *networkingv1.NetworkPolicy {
696
697
698
- Name: fmt.Sprintf("allow-nothing"),
+ Name: "allow-nothing",
699
700
701
0 commit comments