Merge pull request #14134 from ckannon/fixes/12595

Accept space before port in DashboardProxy Regex
pull/14137/head
Sharif Elgamal 2022-05-10 12:49:22 -07:00 committed by GitHub
commit 48c1e3f9af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -47,9 +47,9 @@ import (
var (
dashboardURLMode bool
dashboardExposedPort int
// Matches: 127.0.0.1:8001
// Matches: "127.0.0.1:8001" or "127.0.0.1 40012" etc.
// TODO(tstromberg): Get kubectl to implement a stable supported output format.
hostPortRe = regexp.MustCompile(`127.0.0.1:\d{4,}`)
hostPortRe = regexp.MustCompile(`127.0.0.1(:| )\d{4,}`)
)
// dashboardCmd represents the dashboard command