Update the kubernetes provider

This commit is contained in:
jbdoumenjou 2019-03-06 10:03:29 +01:00 committed by Traefiker Bot
parent 3419f9aeb9
commit e2d8a95c91
2 changed files with 65 additions and 1 deletions

View file

@ -222,7 +222,7 @@ func loadService(client Client, namespace string, backend v1beta1.IngressBackend
}
protocol := "http"
if port == 443 || portName == "https" {
if port == 443 || strings.HasPrefix(portName, "https") {
protocol = "https"
}