fix: targetPort error when ExternalName service targetPort not a number
This commit is contained in:
parent
7058b25e64
commit
5971fbece5
1 changed files with 1 additions and 1 deletions
|
@ -1766,7 +1766,7 @@ func externalNamePorts(name string, svc *apiv1.Service) *apiv1.ServicePort {
|
||||||
return &apiv1.ServicePort{
|
return &apiv1.ServicePort{
|
||||||
Protocol: "TCP",
|
Protocol: "TCP",
|
||||||
Port: svcPort.Port,
|
Port: svcPort.Port,
|
||||||
TargetPort: svcPort.TargetPort,
|
TargetPort: tp,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue