Skip to content

Commit b3df120

Browse files
committed
format
1 parent 973e7b7 commit b3df120

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
@@ -121,7 +121,7 @@ func (r *Reconciler) reconcileCoreNetworkPolicy(ctx context.Context, cr *model.C
121121
},
122122
},
123123
Ports: []networkingv1.NetworkPolicyPort{
124-
networkingv1.NetworkPolicyPort{
124+
{
125125
Port: &intstr.IntOrString{IntVal: constants.AgentProxyContainerPort},
126126
},
127127
},
@@ -155,7 +155,7 @@ func (r *Reconciler) reconcileCoreNetworkPolicy(ctx context.Context, cr *model.C
155155
egressDestinations = append(egressDestinations, networkingv1.NetworkPolicyPeer{
156156
NamespaceSelector: &metav1.LabelSelector{
157157
MatchExpressions: []metav1.LabelSelectorRequirement{
158-
metav1.LabelSelectorRequirement{
158+
{
159159
Key: NAMESPACE_NAME_LABEL,
160160
Operator: metav1.LabelSelectorOpIn,
161161
Values: slices.Compact(egressNamespaces),

0 commit comments

Comments
 (0)