From 8d7308e6bb613e83e22767c8affc9cc8a08d36eb Mon Sep 17 00:00:00 2001 From: Tomofumi Hayashi Date: Fri, 26 Mar 2021 01:31:01 +0900 Subject: [PATCH] Return error on annotation parsing error Fix #635 --- pkg/k8sclient/k8sclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/k8sclient/k8sclient.go b/pkg/k8sclient/k8sclient.go index 7b48d8f5f..b5b6fdd05 100644 --- a/pkg/k8sclient/k8sclient.go +++ b/pkg/k8sclient/k8sclient.go @@ -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