diff --git a/pkg/server/api/shim.go b/pkg/server/api/shim.go index 01018ddd4..d1463d6d8 100644 --- a/pkg/server/api/shim.go +++ b/pkg/server/api/shim.go @@ -24,8 +24,6 @@ import ( cnitypes "github.com/containernetworking/cni/pkg/types" "gopkg.in/k8snetworkplumbingwg/multus-cni.v4/pkg/logging" - - utilwait "k8s.io/apimachinery/pkg/util/wait" ) // ShimNetConf for the SHIM cni config file written in json @@ -90,10 +88,7 @@ func postRequest(args *skel.CmdArgs) (*Response, string, error) { } var body []byte - err = utilwait.PollImmediate(APIReadyPollDuration, APIReadyPollTimeout, func() (bool, error) { - body, err = DoCNI("http://dummy/cni", cniRequest, SocketPath(multusShimConfig.MultusSocketDir)) - return err == nil, nil - }) + body, err = DoCNI("http://dummy/cni", cniRequest, SocketPath(multusShimConfig.MultusSocketDir)) if err != nil { return nil, multusShimConfig.CNIVersion, err }