Skip to content

Commit 7bdd842

Browse files
committed
fix
Signed-off-by: Benedikt Bongartz <[email protected]>
1 parent f6955de commit 7bdd842

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

internal/manifests/networking/components.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -215,18 +215,17 @@ func componentRelations(params manifestutils.Params) networkRelations {
215215
}
216216

217217
if tempo.Spec.Template.QueryFrontend.JaegerQuery.Enabled {
218-
fromTo[netPolicyClusterComponents][manifestutils.JaegerFrontendComponentName] = []networkingv1.NetworkPolicyPort{
219-
{
220-
218+
fromTo[netPolicyClusterComponents][manifestutils.QueryFrontendComponentName] = append(
219+
fromTo[netPolicyClusterComponents][manifestutils.QueryFrontendComponentName],
220+
networkingv1.NetworkPolicyPort{
221221
Protocol: ptr.To(corev1.ProtocolTCP),
222222
Port: ptr.To(intstr.FromInt(manifestutils.PortJaegerUI)),
223223
},
224-
{
225-
224+
networkingv1.NetworkPolicyPort{
226225
Protocol: ptr.To(corev1.ProtocolTCP),
227226
Port: ptr.To(intstr.FromInt(manifestutils.PortJaegerMetrics)),
228227
},
229-
}
228+
)
230229
}
231230
return fromTo
232231
}

0 commit comments

Comments
 (0)