feat: Add ServersTransport annotation to k8s ingress provider

This commit is contained in:
Wouter Dullaert 2021-04-20 17:19:29 +02:00 committed by Jean-Baptiste Doumenjou
parent 526f493e12
commit 456df0fc19
6 changed files with 24 additions and 5 deletions

View file

@ -530,6 +530,10 @@ func loadService(client Client, namespace string, backend networkingv1.IngressBa
}
}
if svcConfig != nil && svcConfig.Service != nil && svcConfig.Service.ServersTransport != "" {
svc.LoadBalancer.ServersTransport = svcConfig.Service.ServersTransport
}
if service.Spec.Type == corev1.ServiceTypeExternalName {
protocol := getProtocol(portSpec, portSpec.Name, svcConfig)
hostPort := net.JoinHostPort(service.Spec.ExternalName, strconv.Itoa(int(portSpec.Port)))