Merge pull request #14658 from anoop142/master

fixes url index out of range error in service
pull/14699/head
Steven Powell 2022-08-01 16:43:08 -07:00 committed by GitHub
commit 3db9ca8f68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -260,6 +260,12 @@ func mutateURLs(serviceName string, urls []string) ([]string, error) {
func openURLs(urls [][]string) {
for _, u := range urls {
if len(u) < 4 {
klog.Warning("No URL found")
continue
}
_, err := url.Parse(u[3])
if err != nil {
klog.Warningf("failed to parse url %q: %v (will not open)", u[3], err)