mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Changes code that still used BandWidthShaper instead of Shaper
This commit is contained in:
parent
69bd305075
commit
80578d5bf1
@ -74,7 +74,7 @@ type kubenetNetworkPlugin struct {
|
|||||||
netConfig *libcni.NetworkConfig
|
netConfig *libcni.NetworkConfig
|
||||||
loConfig *libcni.NetworkConfig
|
loConfig *libcni.NetworkConfig
|
||||||
cniConfig libcni.CNI
|
cniConfig libcni.CNI
|
||||||
bandwidthShaper bandwidth.BandwidthShaper
|
bandwidthShaper bandwidth.Shaper
|
||||||
mu sync.Mutex //Mutex for protecting podIPs map, netConfig, and shaper initialization
|
mu sync.Mutex //Mutex for protecting podIPs map, netConfig, and shaper initialization
|
||||||
podIPs map[kubecontainer.ContainerID]string
|
podIPs map[kubecontainer.ContainerID]string
|
||||||
mtu int
|
mtu int
|
||||||
|
@ -33,7 +33,7 @@ import (
|
|||||||
"k8s.io/klog"
|
"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
|
// 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
|
// do this within an container, it only requires the NS_CAPABLE capability for manipulations to that
|
||||||
// container's network namespace.
|
// container's network namespace.
|
||||||
@ -45,7 +45,7 @@ type tcShaper struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// NewTCShaper makes a new tcShaper for the given interface
|
// NewTCShaper makes a new tcShaper for the given interface
|
||||||
func NewTCShaper(iface string) BandwidthShaper {
|
func NewTCShaper(iface string) Shaper {
|
||||||
shaper := &tcShaper{
|
shaper := &tcShaper{
|
||||||
e: exec.New(),
|
e: exec.New(),
|
||||||
iface: iface,
|
iface: iface,
|
||||||
|
Loading…
Reference in New Issue
Block a user