Return error on annotation parsing error

Fix #635
This commit is contained in:
Tomofumi Hayashi
2021-03-26 01:31:01 +09:00
parent c4b9534529
commit 8d7308e6bb

View File

@@ -367,7 +367,7 @@ func TryLoadPodDelegates(pod *v1.Pod, conf *types.NetConf, clientInfo *ClientInf
return len(delegates), clientInfo, nil
}
return 0, clientInfo, nil
return 0, clientInfo, err
}
// GetK8sClient gets client info from kubeconfig