Denying deprecated pointer package in golangci-linters config

This commit is contained in:
PatrickLaabs
2025-11-21 09:51:20 +01:00
parent 5bcb759973
commit 7402fc23db
3 changed files with 18 additions and 0 deletions

View File

@@ -378,6 +378,12 @@ linters:
# - fruit
depguard:
rules:
utils:
files:
- $all
deny:
- pkg: "k8s.io/utils/pointer"
desc: "k8s.io/utils/pointer shall no longer be used, please use k8s.io/utils/ptr."
go-cmp:
files:
- $all

View File

@@ -387,6 +387,12 @@ linters:
# - fruit
depguard:
rules:
utils:
files:
- $all
deny:
- pkg: "k8s.io/utils/pointer"
desc: "k8s.io/utils/pointer shall no longer be used, please use k8s.io/utils/ptr."
go-cmp:
files:
- $all

View File

@@ -199,6 +199,12 @@ linters:
{{include "hack/kube-api-linter/kube-api-linter.yaml" | indent 10 | trim}}
depguard:
rules:
utils:
files:
- $all
deny:
- pkg: "k8s.io/utils/pointer"
desc: "k8s.io/utils/pointer shall no longer be used, please use k8s.io/utils/ptr."
go-cmp:
files:
- $all