Skip to content

Commit ed7562c

Browse files
authored
[release-1.17] bump google container registry and dependent dependencies (#15851)
* bump google container registry and dependent dependencies * update linter config to v2 * update .codecov file to match `main`
1 parent 6265a8e commit ed7562c

File tree

387 files changed

+26978
-12643
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

387 files changed

+26978
-12643
lines changed

.codecov.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ comment:
1717
ignore:
1818
- "**/zz_generated*.go" # Ignore generated files.
1919
- "**/*.pb.go" # Ignore proto-generated files.
20+
- "cmd"
2021
- "hack"
2122
- "pkg/client"
2223
- "test"

.golangci.yaml

Lines changed: 79 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,15 @@
1+
version: "2"
12
run:
2-
timeout: 10m
3-
allow-parallel-runners: true
4-
exclude-dirs:
5-
- pkg/client
63
build-tags:
7-
- e2e
8-
- hpa
9-
- upgrade
10-
4+
- e2e
5+
- hpa
6+
- upgrade
7+
allow-parallel-runners: true
118
output:
12-
sort-results: true
139
sort-order:
14-
- linter
15-
- file
16-
show-stats: true
17-
18-
19-
issues:
20-
uniq-by-line: true
21-
max-issues-per-linter: 0
22-
max-same-issues: 0
23-
exclude-rules:
24-
- path: test # Excludes /test, *_test.go etc.
25-
linters:
26-
- gosec
27-
- unparam
28-
- noctx
29-
- protogetter
30-
- linters: ["gocritic"]
31-
# Fixes are non-trivial do in a follow up
32-
text: "ifElseChain"
33-
34-
linters-settings:
35-
gocritic:
36-
disabled-checks:
37-
# we typically have this pattern during setup
38-
- exitAfterDefer
39-
# a lot cases we have are legit
40-
- appendAssign
41-
gomodguard:
42-
blocked:
43-
modules:
44-
- github.com/ghodss/yaml:
45-
recommendations:
46-
- sigs.k8s.io/yaml
47-
- go.uber.org/atomic:
48-
recommendations:
49-
- sync/atomic
50-
- io/ioutil:
51-
recommendations:
52-
- os
53-
- io
54-
- github.com/hashicorp/go-multierror:
55-
reason: "use errors.Join"
56-
recommendations:
57-
- errors
58-
- go.uber.org/multierr:
59-
reason: "use errors.Join"
60-
recommendations:
61-
- errors
62-
revive:
63-
rules:
64-
# use unparam linter instead - defaults are better
65-
- name: unused-parameter
66-
disabled: true
67-
10+
- linter
11+
- file
6812
linters:
69-
disable:
70-
- errcheck
7113
enable:
7214
# Check for pass []any as any in variadic func(...any).
7315
- asasalint
@@ -88,7 +30,7 @@ linters:
8830
# # Containedctx is a linter that detects struct contained context.Context
8931
# # field.
9032
# - containedctx
91-
33+
#
9234
# TODO - do a follow up PR
9335
# # Check whether the function uses a non-inherited context.
9436
# - contextcheck
@@ -122,27 +64,12 @@ linters:
12264
# report message and optional suggestion.
12365
- gocritic
12466

125-
# Gofmt checks whether code was gofmt-ed. By default this tool runs
126-
# with -s option to check for code simplification.
127-
- gofmt
128-
129-
# Gofumpt checks whether code was gofumpt-ed.
130-
- gofumpt
131-
132-
# Check import statements are formatted according to the 'goimport'
133-
# command. Reformat imports in autofix mode.
134-
- goimports
135-
13667
# See config below
13768
- gomodguard
13869

13970
# Inspects source code for security problems.
14071
- gosec
14172

142-
# Linter that specializes in simplifying code.
143-
- gosimple
144-
- govet
145-
14673
# Intrange is a linter to find places where for loops could make use of
14774
# an integer range.
14875
- intrange
@@ -190,12 +117,7 @@ linters:
190117
# Checks for mistakes with OpenTelemetry/Census spans.
191118
- spancheck
192119

193-
# Stylecheck is a replacement for golint.
194-
- stylecheck
195-
196-
# Tenv is analyzer that detects using os.Setenv instead of t.Setenv
197-
# since Go1.17.
198-
- tenv
120+
- staticcheck
199121

200122
# Linter checks if examples are testable (have an expected output).
201123
- testableexamples
@@ -216,4 +138,73 @@ linters:
216138
# Whitespace is a linter that checks for unnecessary newlines at the start
217139
# and end of functions, if, for, etc.
218140
- whitespace
219-
141+
disable:
142+
- errcheck
143+
settings:
144+
gocritic:
145+
disabled-checks:
146+
- exitAfterDefer
147+
- appendAssign
148+
gomodguard:
149+
blocked:
150+
modules:
151+
- github.com/ghodss/yaml:
152+
recommendations:
153+
- sigs.k8s.io/yaml
154+
- go.uber.org/atomic:
155+
recommendations:
156+
- sync/atomic
157+
- io/ioutil:
158+
recommendations:
159+
- os
160+
- io
161+
- github.com/hashicorp/go-multierror:
162+
recommendations:
163+
- errors
164+
reason: use errors.Join
165+
- go.uber.org/multierr:
166+
recommendations:
167+
- errors
168+
reason: use errors.Join
169+
revive:
170+
rules:
171+
- name: unused-parameter
172+
disabled: true
173+
exclusions:
174+
generated: lax
175+
presets:
176+
- comments
177+
- common-false-positives
178+
- legacy
179+
- std-error-handling
180+
rules:
181+
- linters:
182+
- gosec
183+
- noctx
184+
- protogetter
185+
- unparam
186+
path: test
187+
- linters:
188+
- gocritic
189+
text: ifElseChain
190+
paths:
191+
- pkg/client
192+
- third_party$
193+
- builtin$
194+
- examples$
195+
issues:
196+
max-issues-per-linter: 0
197+
max-same-issues: 0
198+
uniq-by-line: true
199+
formatters:
200+
enable:
201+
- gofmt
202+
- gofumpt
203+
- goimports
204+
exclusions:
205+
generated: lax
206+
paths:
207+
- pkg/client
208+
- third_party$
209+
- builtin$
210+
- examples$

0 commit comments

Comments
 (0)