TLS improvements (#1317)

* Fix tls hostname for ingress with path

* Possibility to set ExposeServiceTLS to true

* keep full path when extracting host

Co-authored-by: Tomas Kral <tomas.kral@gmail.com>
This commit is contained in:
Bo Biene
2020-11-30 15:48:50 +08:00
committed by GitHub
co-authored by Tomas Kral
parent 3772612ff9
commit 76565d80b2
3 changed files with 50 additions and 8 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ func ParseVolume(volume string) (name, host, container, mode string, err error)
func ParseIngressPath(url string) (string, string) {
if strings.Contains(url, "/") {
splits := strings.Split(url, "/")
return splits[0], "/" + splits[1]
return splits[0], "/" + strings.Join(splits[1:], "/")
}
return url, ""
}