feat: implemented fallback mechanism for when CNI does not provide an… #20296
Annotations
10 errors and 1 notice
|
golangci-lint:
network/policy/policy_windows.go#L338
error returned from external package is unwrapped: sig: func encoding/json.Marshal(v any) ([]byte, error) (wrapcheck)
|
|
golangci-lint:
network/network_windows_test.go#L611
require-error: for error assertions use require (testifylint)
|
|
golangci-lint:
network/network_windows_test.go#L583
require-error: for error assertions use require (testifylint)
|
|
golangci-lint:
network/network_windows.go#L284
ST1005: error strings should not be capitalized (staticcheck)
|
|
golangci-lint:
network/policy/policy_windows.go#L327
File is not properly formatted (gofumpt)
|
|
golangci-lint:
network/network_windows_test.go#L593
importShadow: shadow of imported from 'github.com/stretchr/testify/assert' package 'assert' (gocritic)
|
|
golangci-lint:
network/network_windows_test.go#L565
importShadow: shadow of imported from 'github.com/stretchr/testify/assert' package 'assert' (gocritic)
|
|
golangci-lint:
cni/network/network_windows_test.go#L1113
string `10.240.0.4/24` has 3 occurrences, make it a constant (goconst)
|
|
golangci-lint:
cni/network/network_windows_test.go#L1032
string `20.240.0.4/24` has 3 occurrences, make it a constant (goconst)
|
|
golangci-lint:
network/network_windows.go#L279
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"PrimaryInterfaceIdentifier %q is not a valid IP or CIDR\", primaryInterfaceIdentifier)" (err113)
|
|
|
background
wait
wait-all
cancel
Loading