mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-29 21:35:50 +00:00
Removed usage of github.com/pkg/errors
Signed-off-by: Sahil Raja <sahilraja242@gmail.com>
This commit is contained in:
parent
8eee78a61f
commit
992993257d
@ -17,12 +17,11 @@ limitations under the License.
|
|||||||
package configfiles
|
package configfiles
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
|
||||||
|
|
||||||
apiequality "k8s.io/apimachinery/pkg/api/equality"
|
apiequality "k8s.io/apimachinery/pkg/api/equality"
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
"k8s.io/apimachinery/pkg/runtime"
|
||||||
kubeletconfigv1beta1 "k8s.io/kubelet/config/v1beta1"
|
kubeletconfigv1beta1 "k8s.io/kubelet/config/v1beta1"
|
||||||
@ -165,7 +164,7 @@ foo: bar`),
|
|||||||
}
|
}
|
||||||
kc, err := loader.Load()
|
kc, err := loader.Load()
|
||||||
|
|
||||||
if c.strictErr && !runtime.IsStrictDecodingError(errors.Cause(err)) {
|
if c.strictErr && !runtime.IsStrictDecodingError(errors.Unwrap(err)) {
|
||||||
t.Fatalf("got error: %v, want strict decoding error", err)
|
t.Fatalf("got error: %v, want strict decoding error", err)
|
||||||
}
|
}
|
||||||
if utiltest.SkipRest(t, c.desc, err, c.err) {
|
if utiltest.SkipRest(t, c.desc, err, c.err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user