Skip to content

Commit 61c7490

Browse files
committed
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 <[email protected]>
1 parent 4f7d1d7 commit 61c7490

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

integration/remote/util/util_unix.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ import (
4444
"path/filepath"
4545

4646
"golang.org/x/sys/unix"
47-
"k8s.io/klog/v2"
4847
)
4948

5049
const (
@@ -115,9 +114,6 @@ func parseEndpointWithFallbackProtocol(endpoint string, fallbackProtocol string)
115114
if protocol, addr, err = parseEndpoint(endpoint); err != nil && protocol == "" {
116115
fallbackEndpoint := fallbackProtocol + "://" + endpoint
117116
protocol, addr, err = parseEndpoint(fallbackEndpoint)
118-
if err == nil {
119-
klog.Warningf("Using %q as endpoint is deprecated, please consider using full url format %q.", endpoint, fallbackEndpoint)
120-
}
121117
}
122118
return
123119
}

integration/util/util_unix.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ import (
4444
"path/filepath"
4545

4646
"golang.org/x/sys/unix"
47-
"k8s.io/klog/v2"
4847
)
4948

5049
const (
@@ -115,9 +114,6 @@ func parseEndpointWithFallbackProtocol(endpoint string, fallbackProtocol string)
115114
if protocol, addr, err = parseEndpoint(endpoint); err != nil && protocol == "" {
116115
fallbackEndpoint := fallbackProtocol + "://" + endpoint
117116
protocol, addr, err = parseEndpoint(fallbackEndpoint)
118-
if err == nil {
119-
klog.Warningf("Using %q as endpoint is deprecated, please consider using full url format %q.", endpoint, fallbackEndpoint)
120-
}
121117
}
122118
return
123119
}

0 commit comments

Comments
 (0)