forked from github/multus-cni
fixing multus runtime error for network status without pod network annotation
This commit is contained in:
committed by
Kuralamudhan Ramakrishnan
parent
02255b40fa
commit
d71fe3447f
@@ -380,7 +380,8 @@ func TryLoadK8sDelegates(k8sArgs *types.K8sArgs, conf *types.NetConf, kubeClient
|
||||
delegates, err := GetK8sNetwork(kubeClient, k8sArgs, conf.ConfDir)
|
||||
if err != nil {
|
||||
if _, ok := err.(*NoK8sNetworkError); ok {
|
||||
return 0, nil, nil
|
||||
return 0, clientInfo, nil
|
||||
//return 0, nil, nil
|
||||
}
|
||||
return 0, nil, fmt.Errorf("Multus: Err in getting k8s network from pod: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user