Lowercase protocol for remote from k8s api
This commit is contained in:
parent
924230c6ba
commit
c1970c26e4
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -1188,7 +1188,7 @@ func getOvpnServerHostsFromKubeApi() []OpenvpnServer {
|
||||||
if service.Status.LoadBalancer.Ingress[0].IP != "" {
|
if service.Status.LoadBalancer.Ingress[0].IP != "" {
|
||||||
lbHost = service.Status.LoadBalancer.Ingress[0].IP
|
lbHost = service.Status.LoadBalancer.Ingress[0].IP
|
||||||
}
|
}
|
||||||
hosts = append(hosts, OpenvpnServer{lbHost,strconv.Itoa(int(service.Spec.Ports[0].Port)),string(service.Spec.Ports[0].Protocol)})
|
hosts = append(hosts, OpenvpnServer{lbHost,strconv.Itoa(int(service.Spec.Ports[0].Port)),strings.ToLower(string(service.Spec.Ports[0].Protocol))})
|
||||||
|
|
||||||
return hosts
|
return hosts
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue