Skip to content

Commit bedbeb2

Browse files
committed
format
1 parent 4f260ab commit bedbeb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/controllers/networkpolicy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func (r *Reconciler) reconcileCoreNetworkPolicy(ctx context.Context, cr *model.C
124124
},
125125
},
126126
Ports: []networkingv1.NetworkPolicyPort{
127-
networkingv1.NetworkPolicyPort{
127+
{
128128
Port: &intstr.IntOrString{IntVal: constants.AgentProxyContainerPort},
129129
},
130130
},
@@ -158,7 +158,7 @@ func (r *Reconciler) reconcileCoreNetworkPolicy(ctx context.Context, cr *model.C
158158
egressDestinations = append(egressDestinations, networkingv1.NetworkPolicyPeer{
159159
NamespaceSelector: &metav1.LabelSelector{
160160
MatchExpressions: []metav1.LabelSelectorRequirement{
161-
metav1.LabelSelectorRequirement{
161+
{
162162
Key: NAMESPACE_NAME_LABEL,
163163
Operator: metav1.LabelSelectorOpIn,
164164
Values: slices.Compact(egressNamespaces),

0 commit comments

Comments
 (0)