Merge pull request #5268 from thaJeztah/no_klog

integration/util: remove dependency on k8s.io/klog/v2
This commit is contained in:
Phil Estes 2021-03-25 11:51:29 -04:00 committed by GitHub
commit 219f1395b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 8 deletions

View File

@ -44,7 +44,6 @@ import (
"path/filepath"
"golang.org/x/sys/unix"
"k8s.io/klog/v2"
)
const (
@ -115,9 +114,6 @@ func parseEndpointWithFallbackProtocol(endpoint string, fallbackProtocol string)
if protocol, addr, err = parseEndpoint(endpoint); err != nil && protocol == "" {
fallbackEndpoint := fallbackProtocol + "://" + endpoint
protocol, addr, err = parseEndpoint(fallbackEndpoint)
if err == nil {
klog.Warningf("Using %q as endpoint is deprecated, please consider using full url format %q.", endpoint, fallbackEndpoint)
}
}
return
}

View File

@ -44,7 +44,6 @@ import (
"path/filepath"
"golang.org/x/sys/unix"
"k8s.io/klog/v2"
)
const (
@ -115,9 +114,6 @@ func parseEndpointWithFallbackProtocol(endpoint string, fallbackProtocol string)
if protocol, addr, err = parseEndpoint(endpoint); err != nil && protocol == "" {
fallbackEndpoint := fallbackProtocol + "://" + endpoint
protocol, addr, err = parseEndpoint(fallbackEndpoint)
if err == nil {
klog.Warningf("Using %q as endpoint is deprecated, please consider using full url format %q.", endpoint, fallbackEndpoint)
}
}
return
}