mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-09-08 20:33:12 +00:00
Update libcni cache when default-route net selection is used
To keep consistency between actual network and CNI result in cache, update libcni cache when multus add/del default routes by `default-route` network selection.
This commit is contained in:
@@ -366,10 +366,13 @@ func TryLoadPodDelegates(pod *v1.Pod, conf *types.NetConf, clientInfo *ClientInf
|
||||
}
|
||||
|
||||
if isGatewayConfigured == true {
|
||||
types.CheckGatewayConfig(conf.Delegates)
|
||||
err = types.CheckGatewayConfig(conf.Delegates)
|
||||
if err != nil {
|
||||
return 0, nil, err
|
||||
}
|
||||
}
|
||||
|
||||
return len(delegates), clientInfo, nil
|
||||
return len(delegates), clientInfo, err
|
||||
}
|
||||
|
||||
if _, ok := err.(*NoK8sNetworkError); ok {
|
||||
|
Reference in New Issue
Block a user