change FromString to Parse so TargetPort parses correctly

This commit is contained in:
Margo Crawford 2021-03-03 11:11:58 -08:00
parent 333a3ab4c2
commit 0799a538dc

View File

@ -385,7 +385,7 @@ func (c *impersonatorConfigController) ensureLoadBalancerIsStarted(ctx context.C
Type: v1.ServiceTypeLoadBalancer,
Ports: []v1.ServicePort{
{
TargetPort: intstr.FromString(impersonationProxyPort),
TargetPort: intstr.Parse(impersonationProxyPort),
Port: defaultHTTPSPort,
Protocol: v1.ProtocolTCP,
},