We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ed6a69 commit 90c8447Copy full SHA for 90c8447
.golangci.yaml
@@ -40,6 +40,9 @@ linters-settings:
40
- pkg: github.com/crunchydata/postgres-operator/internal/testing/*
41
desc: The "internal/testing" packages should be used only in tests.
42
43
+ - pkg: k8s.io/client-go/discovery
44
+ desc: Use the "internal/kubernetes" package instead.
45
+
46
tests:
47
files: ['$test']
48
deny:
@@ -93,6 +96,11 @@ linters-settings:
93
96
issues:
94
97
exclude-generated: strict
95
98
exclude-rules:
99
+ # This internal package is the one place we want to do API discovery.
100
+ - linters: [depguard]
101
+ path: internal/kubernetes/discovery.go
102
+ text: k8s.io/client-go/discovery
103
104
# These value types have unmarshal methods.
105
# https://github.com/raeperd/recvcheck/issues/7
106
- linters: [recvcheck]
0 commit comments