1
0
Fork 0
mirror of synced 2024-11-17 14:35:35 -05:00

Lowercase protocol for remote from k8s api

This commit is contained in:
Ilya Sosnovsky 2021-10-14 08:11:07 +03:00 committed by GitHub
parent 924230c6ba
commit c1970c26e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1188,7 +1188,7 @@ func getOvpnServerHostsFromKubeApi() []OpenvpnServer {
if 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
}