Sascha Grunert
de37b9d293
Make CRI v1
the default and allow a fallback to v1alpha2
...
This patch makes the CRI `v1` API the new project-wide default version.
To allow backwards compatibility, a fallback to `v1alpha2` has been added
as well. This fallback can either used by automatically determined by
the kubelet.
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2021-11-17 11:05:05 -08:00
Kubernetes Prow Robot
1367cca8fd
Merge pull request #106448 from aojea/hlee/issue-103721/staticcheck
...
use golangci-lint
2021-11-17 09:25:54 -08:00
Kubernetes Prow Robot
cd6ffff85d
Merge pull request #103526 from brianpursley/kubectl-686
...
Close connection and stop listening when port forwarding errors occur so that kubectl can exit
2021-11-17 07:59:54 -08:00
Kubernetes Prow Robot
557b5feb08
Merge pull request #106305 from shivanshu1333/fix/master/schedularMigration
...
migrated schedular to structured logging
2021-11-17 05:05:54 -08:00
Antonio Ojea
bf9ce7fd76
remove unused fakeUpgradeConnection
2021-11-17 13:58:54 +01:00
Antonio Ojea
9336ff78f4
remove unused variable responseBodySize
2021-11-17 13:58:54 +01:00
Antonio Ojea
3490bdc8b5
remove unused listMetaType var
2021-11-17 13:58:54 +01:00
Antonio Ojea
98884f733a
remove ineffectual assignment base var
2021-11-17 13:58:54 +01:00
Antonio Ojea
f143d1b2cd
remove unused constant errLeaseFailed
2021-11-17 13:58:54 +01:00
Antonio Ojea
05f9a86f41
fix diskName assignment
2021-11-17 13:58:54 +01:00
Antonio Ojea
e1821c13eb
remove inefficient assignment
2021-11-17 13:58:54 +01:00
Antonio Ojea
0019f98613
no lint unused variables
2021-11-17 13:58:54 +01:00
Antonio Ojea
e82e0b38ff
no lint unused variables
2021-11-17 13:58:54 +01:00
Antonio Ojea
4352768240
fix inefassign linter declaring variable
2021-11-17 13:58:54 +01:00
Antonio Ojea
4bf93f318a
nolint:staticcheck,ineffassign Convert function
2021-11-17 13:58:54 +01:00
Antonio Ojea
35c05a3afa
nolint float64(-0.0), //nolint:staticcheck // SA4026:
2021-11-17 13:58:54 +01:00
Antonio Ojea
c4080c2ad1
nolint unused expectNoMatchDirect function
2021-11-17 13:58:54 +01:00
Antonio Ojea
52c69ba744
fix ineffectual assignment to name (ineffassign)
2021-11-17 13:58:54 +01:00
Antonio Ojea
31d45d000b
fix ineffectual assignment to base var
2021-11-17 13:58:53 +01:00
Antonio Ojea
b2971e7497
fix ineffectual assignment to i (ineffassign)
2021-11-17 13:58:53 +01:00
Antonio Ojea
a36517f9e7
nolint unused errLeaseFailed
2021-11-17 13:58:53 +01:00
Antonio Ojea
d55af19c1b
fix ineffectual assignment to diskName
2021-11-17 13:58:53 +01:00
Antonio Ojea
fa3c4b953f
fix SA4005: ineffective assignment to field PatchMeta.patchStrategies (staticcheck)
2021-11-17 13:58:53 +01:00
Antonio Ojea
01a0fba362
fix unassigned error on client-go test
2021-11-17 13:58:53 +01:00
Antonio Ojea
d126b14838
migrate nolint coments to golangci-lint
2021-11-17 13:58:53 +01:00
Antonio Ojea
272b31da50
use golangci-lint and remove legacy verify-staticcheck.sh
2021-11-17 13:58:53 +01:00
Antonio Ojea
86e197991a
fix golangci-lint config file using exclude-rules
...
golangci configuration file
disable soon to be deprecated golangci linters
remove useless comments on golangci config
2021-11-17 13:58:53 +01:00
Hanna Lee
ca7cfb75d0
Copy in options from now-deleted hack/verify-staticcheck.sh script
2021-11-17 08:56:57 +01:00
Tim Hockin
e986d72575
Add staticcheck to .golangci.yaml
...
TODO: port options from verify-staticcheck.sh and delete it
2021-11-17 08:56:57 +01:00
Tim Hockin
3bca4e6d67
Move golangci-lint config to a file
...
Make verify-golangci-lint.sh work across modules and take an optional
argument for a package.
2021-11-17 08:56:57 +01:00
Hanna Lee
e78b3e8dfe
Use nolint directive instead of stopping ticker, per liggit's suggestion
2021-11-17 08:56:57 +01:00
Hanna Lee
69d029bddb
Add syncTicker.Stop()
2021-11-17 08:56:57 +01:00
Hanna Lee
07a883d8e6
Remove //lint:ignore pragmas that aren't being used anymore
2021-11-17 08:56:54 +01:00
Hanna Lee
a707061828
Simplify multiplication
2021-11-17 08:56:02 +01:00
Hanna Lee
2933df3645
Fix order of operations
2021-11-17 08:56:02 +01:00
Hanna Lee
c8fde197f5
Add more //nolint:staticcheck for failures caught in PR tests
2021-11-17 08:56:02 +01:00
Hanna Lee
c862d7c0e9
Fix last remaining SA5011 error by removing unnecessary r != nil check
2021-11-17 08:56:01 +01:00
Hanna Lee
a7daeb37af
Convert one more utilflag.IPVar to &utilflag.IPVar
2021-11-17 08:56:01 +01:00
Hanna Lee
7ea01c0bdb
Add staticcheck to verify-golangci-lint.sh
2021-11-17 08:56:01 +01:00
Hanna Lee
04fadd8b03
Fix SA5011 errors by making control flow abort obvious to linter
2021-11-17 08:56:00 +01:00
Hanna Lee
1fbf06f5ad
Use time.NewTicker instead of time.Tick to avoid leaking
2021-11-17 08:56:00 +01:00
Hanna Lee
30ea05ae7b
Update IPVar and IPPortVar functions to have pointer receivers to fix 'ineffective assignment'
2021-11-17 08:56:00 +01:00
Hanna Lee
0f3836dcc5
Ignore deprecation warnings with //nolint:staticcheck
2021-11-17 08:55:57 +01:00
Hanna Lee
979c4254eb
Fix integer division
2021-11-17 08:53:19 +01:00
Kubernetes Prow Robot
6c357f9996
Merge pull request #106041 from jonyhy96/volumemanager-reconciler-codefmt
...
kubelet: extract multiple ignore errors validate logic to isExpectedError
2021-11-16 22:55:53 -08:00
Kubernetes Prow Robot
f784891854
Merge pull request #105945 from Jefftree/openapi-v3-test
...
OpenAPI v3
2021-11-16 21:14:05 -08:00
Kubernetes Prow Robot
9dd8aad535
Merge pull request #104750 from sanposhiho/fix/bug/proxy/defer-with-os-exit
...
Fix(kube-proxy): remove os.Exit from cobra.Command
2021-11-16 21:13:53 -08:00
Kubernetes Prow Robot
7eb502be37
Merge pull request #106141 from enj/enj/i/oidc_client
...
oidc authenticator: allow http.Client to be overridden
2021-11-16 20:11:53 -08:00
Kubernetes Prow Robot
0c476690d5
Merge pull request #105520 from soltysh/bump_burst
...
Bump discovery burst for kubectl to 300
2021-11-16 18:45:53 -08:00
brianpursley
4a35e6c564
close streamConn and stop listening when an error occurs while port forwarding
2021-11-16 21:05:43 -05:00