integration/util: remove dependency on k8s.io/klog/v2
Having this log should not be critical, and removing it allows using this package without pulling in the explicit dependency on k8s.io/klog. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
4f7d1d74fb
commit
61c7490368
@ -44,7 +44,6 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"golang.org/x/sys/unix"
|
"golang.org/x/sys/unix"
|
||||||
"k8s.io/klog/v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -115,9 +114,6 @@ func parseEndpointWithFallbackProtocol(endpoint string, fallbackProtocol string)
|
|||||||
if protocol, addr, err = parseEndpoint(endpoint); err != nil && protocol == "" {
|
if protocol, addr, err = parseEndpoint(endpoint); err != nil && protocol == "" {
|
||||||
fallbackEndpoint := fallbackProtocol + "://" + endpoint
|
fallbackEndpoint := fallbackProtocol + "://" + endpoint
|
||||||
protocol, addr, err = parseEndpoint(fallbackEndpoint)
|
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
|
return
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,6 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"golang.org/x/sys/unix"
|
"golang.org/x/sys/unix"
|
||||||
"k8s.io/klog/v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -115,9 +114,6 @@ func parseEndpointWithFallbackProtocol(endpoint string, fallbackProtocol string)
|
|||||||
if protocol, addr, err = parseEndpoint(endpoint); err != nil && protocol == "" {
|
if protocol, addr, err = parseEndpoint(endpoint); err != nil && protocol == "" {
|
||||||
fallbackEndpoint := fallbackProtocol + "://" + endpoint
|
fallbackEndpoint := fallbackProtocol + "://" + endpoint
|
||||||
protocol, addr, err = parseEndpoint(fallbackEndpoint)
|
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
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user