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,