Skip to content

Commit

Permalink
fix use of variadic param
Browse files Browse the repository at this point in the history
  • Loading branch information
dprotaso committed Feb 23, 2024
1 parent 38b7abe commit 23cd1ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/conformance/ingress/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ func CreateRuntimeService(ctx context.Context, t *testing.T, clients *test.Clien
},
}

if appProtocol != "" {
svc.Spec.Ports[0].AppProtocol = &appProtocol
if len(appProtocol) > 0 {
svc.Spec.Ports[0].AppProtocol = ptr.String(appProtocol[0])
}

return name, port, createPodAndService(ctx, t, clients, pod, svc)
Expand Down

0 comments on commit 23cd1ce

Please sign in to comment.