mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
kubelet/networking: add support for cni ConfigLists, pass hostport parameters
** reason for this change ** CNI has recently introduced a new configuration list feature. This allows for plugin chaining. It also supports varied plugin versions.
This commit is contained in:
@@ -65,9 +65,9 @@ func (nh *fakeNamespaceGetter) GetNetNS(containerID string) (string, error) {
|
||||
}
|
||||
|
||||
type FakePortMappingGetter struct {
|
||||
mem map[string][]*hostport.PortMapping
|
||||
PortMaps map[string][]*hostport.PortMapping
|
||||
}
|
||||
|
||||
func (pm *FakePortMappingGetter) GetPodPortMappings(containerID string) ([]*hostport.PortMapping, error) {
|
||||
return pm.mem[containerID], nil
|
||||
return pm.PortMaps[containerID], nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user