Update github.com/pkg/errors to go native errors pkg

Signed-off-by: Sahil Raja <sahil.raja@mayadata.io>
This commit is contained in:
Sahil Raja
2021-06-21 23:03:14 +05:30
parent 99c35dc37c
commit 8eee78a61f
3 changed files with 4 additions and 6 deletions

View File

@@ -22,13 +22,13 @@ package operationexecutor
import (
"context"
"errors"
"fmt"
"net"
"time"
"k8s.io/klog/v2"
"github.com/pkg/errors"
"google.golang.org/grpc"
"k8s.io/client-go/tools/record"
registerapi "k8s.io/kubelet/pkg/apis/pluginregistration/v1"
@@ -163,7 +163,7 @@ func (og *operationGenerator) notifyPlugin(client registerapi.RegistrationClient
}
if _, err := client.NotifyRegistrationStatus(ctx, status); err != nil {
return errors.Wrap(err, errStr)
return fmt.Errorf("%s: %w", errStr, err)
}
if errStr != "" {