diff --git a/hack/golangci-hints.yaml b/hack/golangci-hints.yaml index 1f3ecff2d4d..81e5e95e753 100644 --- a/hack/golangci-hints.yaml +++ b/hack/golangci-hints.yaml @@ -254,13 +254,6 @@ linters: deny: - pkg: "github.com/google/go-cmp/cmp" desc: "cmp is allowed only in test files" - pkg-errors: - files: - - $all - - "!**/cmd/kubeadm/**" - deny: - - pkg: "github.com/pkg/errors" - desc: "pkg/errors is allowed only in cmd/kubeadm" forbidigo: analyze-types: true forbid: diff --git a/hack/golangci.yaml b/hack/golangci.yaml index 423fd4fa207..2306878a6bf 100644 --- a/hack/golangci.yaml +++ b/hack/golangci.yaml @@ -268,13 +268,6 @@ linters: deny: - pkg: "github.com/google/go-cmp/cmp" desc: "cmp is allowed only in test files" - pkg-errors: - files: - - $all - - "!**/cmd/kubeadm/**" - deny: - - pkg: "github.com/pkg/errors" - desc: "pkg/errors is allowed only in cmd/kubeadm" forbidigo: analyze-types: true forbid: diff --git a/hack/golangci.yaml.in b/hack/golangci.yaml.in index cff3c272098..cebfd06fd5e 100644 --- a/hack/golangci.yaml.in +++ b/hack/golangci.yaml.in @@ -198,13 +198,6 @@ linters: deny: - pkg: "github.com/google/go-cmp/cmp" desc: "cmp is allowed only in test files" - pkg-errors: - files: - - $all - - "!**/cmd/kubeadm/**" - deny: - - pkg: "github.com/pkg/errors" - desc: "pkg/errors is allowed only in cmd/kubeadm" forbidigo: analyze-types: true forbid: diff --git a/hack/unwanted-dependencies.json b/hack/unwanted-dependencies.json index d3976c3815f..320268810d8 100644 --- a/hack/unwanted-dependencies.json +++ b/hack/unwanted-dependencies.json @@ -227,7 +227,6 @@ "github.com/pkg/errors": [ "github.com/Microsoft/hnslib", "github.com/google/cadvisor", - "k8s.io/kubernetes", "sigs.k8s.io/kustomize/api", "sigs.k8s.io/kustomize/kustomize/v5" ],