feat: Migration stateless cni #8981
Annotations
19 errors and 4 warnings
Lint (1.21.x, ubuntu-latest):
cns/cnireconciler/podinfoprovider.go#L47
importShadow: shadow of imported from 'k8s.io/utils/exec' package 'exec' (gocritic)
|
Lint (1.21.x, ubuntu-latest):
cns/cnireconciler/podinfoprovider.go#L154
unnamedResult: consider giving a name to these results (gocritic)
|
Lint (1.21.x, ubuntu-latest):
cns/service/main.go#L1175
cyclomatic complexity 44 of func `InitializeCRDState` is high (> 30) (gocyclo)
|
Lint (1.21.x, ubuntu-latest):
cns/cnireconciler/podinfoprovider.go#L165
File is not `gofumpt`-ed (gofumpt)
|
Lint (1.21.x, ubuntu-latest):
cns/cnireconciler/podinfoprovider_test.go#L34
line is 579 characters (lll)
|
Lint (1.21.x, ubuntu-latest):
cns/cnireconciler/podinfoprovider.go#L118
cniStateToCnsEndpointState - result 1 (error) is always nil (unparam)
|
Lint (1.21.x, ubuntu-latest):
cns/service/main.go#L1238
shadow: declaration of "err" shadows declaration at line 1191 (govet)
|
Lint (1.21.x, ubuntu-latest):
cns/cnireconciler/podinfoprovider.go#L56
ineffectual assignment to err (ineffassign)
|
Lint (1.21.x, ubuntu-latest)
issues found
|
Lint (1.21.x, windows-latest):
cns/cnireconciler/podinfoprovider.go#L47
importShadow: shadow of imported from 'k8s.io/utils/exec' package 'exec' (gocritic)
|
Lint (1.21.x, windows-latest):
cns/cnireconciler/podinfoprovider.go#L154
unnamedResult: consider giving a name to these results (gocritic)
|
Lint (1.21.x, windows-latest):
network/endpoint_windows.go#L511
rangeValCopy: each iteration copies 392 bytes (consider pointers or indexing) (gocritic)
|
Lint (1.21.x, windows-latest):
cns/service/main.go#L1175
cyclomatic complexity 44 of func `InitializeCRDState` is high (> 30) (gocyclo)
|
Lint (1.21.x, windows-latest):
cns/cnireconciler/podinfoprovider.go#L165
File is not `gofumpt`-ed (gofumpt)
|
Lint (1.21.x, windows-latest):
cns/cnireconciler/podinfoprovider_test.go#L34
line is 579 characters (lll)
|
Lint (1.21.x, windows-latest):
cns/cnireconciler/podinfoprovider.go#L118
cniStateToCnsEndpointState - result 1 (error) is always nil (unparam)
|
Lint (1.21.x, windows-latest):
network/endpoint_windows.go#L522
err113: do not define dynamic errors, use wrapped static errors instead: "errors.New(\"No HNSEndpointID matches the IPAddress: \" + ipAddresses[0].IP.String())" (goerr113)
|
Lint (1.21.x, windows-latest):
cns/service/main.go#L1238
shadow: declaration of "err" shadows declaration at line 1191 (govet)
|
Lint (1.21.x, windows-latest):
cns/cnireconciler/podinfoprovider.go#L56
ineffectual assignment to err (ineffassign)
|
Lint (1.21.x, ubuntu-latest):
cns/cnireconciler/podinfoprovider.go#L162
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
Lint (1.21.x, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/azure-container-networking/azure-container-networking. Supported file pattern: go.sum
|
Lint (1.21.x, windows-latest):
cns/cnireconciler/podinfoprovider.go#L162
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
Lint (1.21.x, windows-latest)
Restore cache failed: Dependencies file is not found in D:\a\azure-container-networking\azure-container-networking. Supported file pattern: go.sum
|