Browse Source
Fix slash for ingress deployment (#418)
- Treat the / the same as empty string for ingress deployments
pull/420/head
David Fowler
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/Microsoft.Tye.Core/KubernetesManifestGenerator.cs
|
|
|
@ -88,7 +88,7 @@ namespace Microsoft.Tye |
|
|
|
//
|
|
|
|
// Therefore our rewrite-target is set to $2 - we want to make sure we have
|
|
|
|
// two capture groups.
|
|
|
|
if (string.IsNullOrEmpty(ingressRule.Path)) |
|
|
|
if (string.IsNullOrEmpty(ingressRule.Path) || ingressRule.Path == "/") |
|
|
|
{ |
|
|
|
path.Add("path", "/()(.*)"); // () is an empty capture group.
|
|
|
|
} |
|
|
|
|