From 80578d5bf125fc9994e812537cf638010ea92d11 Mon Sep 17 00:00:00 2001 From: viegasdom Date: Thu, 11 Apr 2019 18:50:32 +0100 Subject: [PATCH] Changes code that still used BandWidthShaper instead of Shaper --- pkg/kubelet/dockershim/network/kubenet/kubenet_linux.go | 2 +- pkg/util/bandwidth/linux.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/kubelet/dockershim/network/kubenet/kubenet_linux.go b/pkg/kubelet/dockershim/network/kubenet/kubenet_linux.go index c3909b1c7f4..53f375392b6 100644 --- a/pkg/kubelet/dockershim/network/kubenet/kubenet_linux.go +++ b/pkg/kubelet/dockershim/network/kubenet/kubenet_linux.go @@ -74,7 +74,7 @@ type kubenetNetworkPlugin struct { netConfig *libcni.NetworkConfig loConfig *libcni.NetworkConfig cniConfig libcni.CNI - bandwidthShaper bandwidth.BandwidthShaper + bandwidthShaper bandwidth.Shaper mu sync.Mutex //Mutex for protecting podIPs map, netConfig, and shaper initialization podIPs map[kubecontainer.ContainerID]string mtu int diff --git a/pkg/util/bandwidth/linux.go b/pkg/util/bandwidth/linux.go index 725c2557e8a..f01e7cc02f9 100644 --- a/pkg/util/bandwidth/linux.go +++ b/pkg/util/bandwidth/linux.go @@ -33,7 +33,7 @@ import ( "k8s.io/klog" ) -// tcShaper provides an implementation of the BandwidthShaper interface on Linux using the 'tc' tool. +// tcShaper provides an implementation of the Shaper interface on Linux using the 'tc' tool. // In general, using this requires that the caller posses the NET_CAP_ADMIN capability, though if you // do this within an container, it only requires the NS_CAPABLE capability for manipulations to that // container's network namespace. @@ -45,7 +45,7 @@ type tcShaper struct { } // NewTCShaper makes a new tcShaper for the given interface -func NewTCShaper(iface string) BandwidthShaper { +func NewTCShaper(iface string) Shaper { shaper := &tcShaper{ e: exec.New(), iface: iface,