Change nil instead of error in case of no network annotation

fix #642
This commit is contained in:
Tomofumi Hayashi
2021-03-31 22:06:21 +09:00
parent ae56437297
commit 479e2bd78e
4 changed files with 32 additions and 0 deletions

View File

@@ -367,6 +367,9 @@ func TryLoadPodDelegates(pod *v1.Pod, conf *types.NetConf, clientInfo *ClientInf
return len(delegates), clientInfo, nil
}
if _, ok := err.(*NoK8sNetworkError); ok {
return 0, clientInfo, nil
}
return 0, clientInfo, err
}