host-local: keep Pod IP #1228
test.yaml
on: pull_request
Lint
27s
Run tests on Linux amd64
0s
Build and run tests on Windows
0s
Annotations
7 errors and 5 warnings
Lint:
plugins/ipam/host-local/backend/disk/backend.go#L242
elseif: can replace 'else {if cond {}}' with 'else if cond {}' (gocritic)
|
Lint:
plugins/ipam/host-local/backend/disk/backend.go#L293
ifElseChain: rewrite if-else to switch statement (gocritic)
|
Lint:
plugins/ipam/host-local/main.go#L143
File is not `gofumpt`-ed (gofumpt)
|
Lint:
plugins/ipam/host-local/backend/disk/backend.go#L238
File is not `gofumpt`-ed (gofumpt)
|
Lint:
plugins/ipam/host-local/backend/disk/backend.go#L262
File is not `gofumpt`-ed (gofumpt)
|
Lint:
plugins/ipam/host-local/backend/disk/backend.go#L280
named return "ip" with type "string" found (nonamedreturns)
|
Lint
issues found
|
Lint:
plugins/ipam/host-local/backend/testing/fake_store.go#L93
unused-parameter: parameter 'podName' seems to be unused, consider removing or renaming it as _ (revive)
|
Lint:
plugins/ipam/host-local/backend/testing/fake_store.go#L97
unused-parameter: parameter 'podNs' seems to be unused, consider removing or renaming it as _ (revive)
|
Lint:
plugins/ipam/host-local/backend/testing/fake_store.go#L105
unused-parameter: parameter 'id' seems to be unused, consider removing or renaming it as _ (revive)
|
Lint:
plugins/ipam/host-local/backend/disk/backend.go#L257
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
Lint:
plugins/ipam/host-local/backend/allocator/allocator.go#L66
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|