Commit 0b91c01
authored
Code modernizations via
* Run "go fix ./..."
Excluding only changes made to
- pkg/server/endpoints/bundle/internal/acmetest/ca.go
- pkg/server/endpoints/bundle/internal/autocert/autocert.go
As this is effectively "vendored" code.
Signed-off-by: Carlo Teubner <cteubner1@bloomberg.net>
* Small simplification post "go fix"
Signed-off-by: Carlo Teubner <cteubner1@bloomberg.net>
* Use "new(value)" construct in more places
Finish the job that "go fix" started with this.
Signed-off-by: Carlo Teubner <cteubner1@bloomberg.net>
* Fix (invalid) staticcheck complaint
Our current staticcheck version is too old to know about the
"new(value)" construct and gets confused by it.
As it happens, we can slightly simplify the code here anyway.
Signed-off-by: Carlo Teubner <cteubner1@bloomberg.net>
* Use "wg.Go" in more places
Finish the job that "go fix" started with this.
This actually includes some race conditions fixes, where we were
previously calling "wg.Add" inside the goroutine, when we should
have been calling it before spawning the goroutine.
Signed-off-by: Carlo Teubner <cteubner1@bloomberg.net>
---------
Signed-off-by: Carlo Teubner <cteubner1@bloomberg.net>go fix + manual follow-up (#6746)1 parent 5fe0953 commit 0b91c01
File tree
37 files changed
+146
-230
lines changed- pkg
- agent
- client
- common/sigstore
- manager
- plugin/workloadattestor/docker
- common
- api/middleware
- catalog
- cliprinter/internal/structpretty
- entrypoint
- health
- telemetry
- server/datastore
- util
- server
- bundle
- client
- pubmanager
- ca
- plugin
- keymanager/azurekeyvault
- nodeattestor
- azureimds
- gcpiit
- notifier/k8sbundle
- upstreamauthority/certmanager/internal/v1
- svid
- support/oidc-discovery-provider
- test
- integration/setup
- adminclient
- downstreamclient
- spiretest
37 files changed
+146
-230
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
290 | | - | |
291 | | - | |
| 289 | + | |
292 | 290 | | |
293 | 291 | | |
294 | 292 | | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
| 293 | + | |
| 294 | + | |
299 | 295 | | |
300 | 296 | | |
301 | 297 | | |
302 | 298 | | |
303 | | - | |
| 299 | + | |
304 | 300 | | |
305 | 301 | | |
306 | 302 | | |
| |||
310 | 306 | | |
311 | 307 | | |
312 | 308 | | |
313 | | - | |
314 | | - | |
315 | | - | |
| 309 | + | |
316 | 310 | | |
317 | 311 | | |
318 | 312 | | |
319 | | - | |
| 313 | + | |
320 | 314 | | |
321 | 315 | | |
322 | 316 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | | - | |
176 | | - | |
| 174 | + | |
177 | 175 | | |
178 | | - | |
| 176 | + | |
179 | 177 | | |
180 | 178 | | |
181 | 179 | | |
| |||
543 | 541 | | |
544 | 542 | | |
545 | 543 | | |
546 | | - | |
547 | | - | |
548 | | - | |
| 544 | + | |
549 | 545 | | |
550 | | - | |
| 546 | + | |
551 | 547 | | |
552 | 548 | | |
553 | 549 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2125 | 2125 | | |
2126 | 2126 | | |
2127 | 2127 | | |
2128 | | - | |
2129 | | - | |
2130 | | - | |
| 2128 | + | |
2131 | 2129 | | |
2132 | 2130 | | |
2133 | 2131 | | |
2134 | | - | |
| 2132 | + | |
2135 | 2133 | | |
2136 | 2134 | | |
2137 | 2135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
90 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
139 | | - | |
140 | | - | |
| 138 | + | |
141 | 139 | | |
142 | 140 | | |
143 | 141 | | |
144 | | - | |
| 142 | + | |
145 | 143 | | |
146 | 144 | | |
147 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
164 | | - | |
| 162 | + | |
165 | 163 | | |
166 | 164 | | |
167 | 165 | | |
168 | 166 | | |
169 | | - | |
| 167 | + | |
170 | 168 | | |
171 | 169 | | |
172 | | - | |
173 | | - | |
174 | | - | |
| 170 | + | |
175 | 171 | | |
176 | 172 | | |
177 | 173 | | |
178 | 174 | | |
179 | | - | |
| 175 | + | |
180 | 176 | | |
181 | 177 | | |
182 | 178 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
| 55 | + | |
58 | 56 | | |
59 | 57 | | |
60 | 58 | | |
61 | 59 | | |
62 | | - | |
| 60 | + | |
63 | 61 | | |
64 | 62 | | |
65 | 63 | | |
| |||
0 commit comments