Correct Kubernetes Ingress and IngressRoute port heuristic for choosing HTTPS
This commit is contained in:
parent
5731ae7f47
commit
2895ad21f3
7 changed files with 11 additions and 9 deletions
|
@ -273,7 +273,7 @@ func loadServers(client Client, namespace string, svc v1alpha1.Service) ([]dynam
|
|||
case "http", "https", "h2c":
|
||||
protocol = svc.Scheme
|
||||
case "":
|
||||
if port == 443 || strings.HasPrefix(portSpec.Name, "https") {
|
||||
if portSpec.Port == 443 || strings.HasPrefix(portSpec.Name, "https") {
|
||||
protocol = "https"
|
||||
}
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue