diff --git a/.golangci.yml b/.golangci.yml index 56777ec17..d7eb46dc6 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -8,12 +8,11 @@ issues: linters-settings: depguard: - list-type: blacklist - packages: - - k8s.io/kubernetes - packages-with-error-message: - - k8s.io/kubernetes: >- - Avoid k8s.io/kubernetes if possible to reduce transitive dependencies + rules: + main: + deny: + - pkg: "k8s.io/kubernetes" + desc: "Avoid if possible to reduce transitive dependencies" dupl: threshold: 100 exhaustive: