File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ linters-settings:
40
40
- pkg : github.com/crunchydata/postgres-operator/internal/testing/*
41
41
desc : The "internal/testing" packages should be used only in tests.
42
42
43
+ - pkg : k8s.io/client-go/discovery
44
+ desc : Use the "internal/kubernetes" package instead.
45
+
43
46
tests :
44
47
files : ['$test']
45
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
+
96
104
# These value types have unmarshal methods.
97
105
# https://github.com/raeperd/recvcheck/issues/7
98
106
- linters : [recvcheck]
You can’t perform that action at this time.
0 commit comments