mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-26 12:46:06 +00:00
switch over k/k to use klog v2
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
@@ -22,7 +22,7 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/Microsoft/hcsshim"
|
||||
"k8s.io/klog"
|
||||
"k8s.io/klog/v2"
|
||||
"net"
|
||||
"strings"
|
||||
)
|
||||
|
@@ -23,7 +23,7 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/Microsoft/hcsshim/hcn"
|
||||
"k8s.io/klog"
|
||||
"k8s.io/klog/v2"
|
||||
|
||||
"strings"
|
||||
)
|
||||
|
@@ -32,7 +32,7 @@ import (
|
||||
"github.com/Microsoft/hcsshim/hcn"
|
||||
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
"k8s.io/klog"
|
||||
"k8s.io/klog/v2"
|
||||
|
||||
v1 "k8s.io/api/core/v1"
|
||||
"k8s.io/apimachinery/pkg/types"
|
||||
@@ -984,7 +984,7 @@ func endpointsToEndpointsMap(endpoints *v1.Endpoints, hostname string, hns HostN
|
||||
epInfo := newEndpointInfo(addr.IP, uint16(port.Port), isLocal, hns)
|
||||
endpointsMap[svcPortName] = append(endpointsMap[svcPortName], epInfo)
|
||||
}
|
||||
if klog.V(3) {
|
||||
if klog.V(3).Enabled() {
|
||||
newEPList := []*endpointsInfo{}
|
||||
for _, ep := range endpointsMap[svcPortName] {
|
||||
newEPList = append(newEPList, ep)
|
||||
|
Reference in New Issue
Block a user