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
parent
commit
7678c24474
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Microsoft.Tye.Core/KubernetesManifestGenerator.cs

2
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.
}

Loading…
Cancel
Save