mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
Handle int and string port in makePort
Signed-off-by: Daniela Lins <danielamlins@gmail.com>
This commit is contained in:
parent
853d2a6a0a
commit
cb48e3cfca
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ func makePort(proto *api.Protocol, port intstr.IntOrString, endPort int32) netwo
|
|||
Protocol: proto,
|
||||
Port: nil,
|
||||
}
|
||||
if port != intstr.FromInt(0) {
|
||||
if port != intstr.FromInt(0) && port != intstr.FromString("") && port != intstr.FromString("0") {
|
||||
r.Port = &port
|
||||
}
|
||||
if endPort != 0 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue