Skip to content

host-local: keep Pod IP #1228

host-local: keep Pod IP

host-local: keep Pod IP #1228

Triggered via pull request November 23, 2023 10:31
Status Failure
Total duration 39s
Artifacts

test.yaml

on: pull_request
Build all linux architectures
0s
Build all linux architectures
Run tests on Linux amd64
0s
Run tests on Linux amd64
Build and run tests on Windows
0s
Build and run tests on Windows
Fit to window
Zoom out
Zoom in

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)