Skip to content

feat: CNS checks apiserver in healthz #14077

feat: CNS checks apiserver in healthz

feat: CNS checks apiserver in healthz #14077

Triggered via pull request December 16, 2024 17:07
Status Failure
Total duration 8m 48s
Artifacts

golangci.yaml

on: pull_request
Matrix: Lint
Fit to window
Zoom out
Zoom in

Annotations

20 errors and 6 warnings
Lint (1.22.x, ubuntu-latest): cns/healthserver/healthz_test.go#L267
Error return value of `w.Write` is not checked (errcheck)
Lint (1.22.x, ubuntu-latest): cns/healthserver/healthz_test.go#L272
Error return value of `w.Write` is not checked (errcheck)
Lint (1.22.x, ubuntu-latest): cns/healthserver/healthz_test.go#L203
httpNoBody: http.NoBody should be preferred to the nil request body (gocritic)
Lint (1.22.x, ubuntu-latest): cns/healthserver/healthz_test.go#L253
preferStringWriter: kubeConfigFile.WriteString(tempKubeConfig) should be preferred to the kubeConfigFile.Write([]byte(tempKubeConfig)) (gocritic)
Lint (1.22.x, ubuntu-latest)
issues found
Lint (1.23.x, ubuntu-latest): cns/healthserver/healthz_test.go#L267
Error return value of `w.Write` is not checked (errcheck)
Lint (1.23.x, ubuntu-latest): cns/healthserver/healthz_test.go#L272
Error return value of `w.Write` is not checked (errcheck)
Lint (1.23.x, ubuntu-latest): cns/healthserver/healthz_test.go#L203
httpNoBody: http.NoBody should be preferred to the nil request body (gocritic)
Lint (1.23.x, ubuntu-latest): cns/healthserver/healthz_test.go#L253
preferStringWriter: kubeConfigFile.WriteString(tempKubeConfig) should be preferred to the kubeConfigFile.Write([]byte(tempKubeConfig)) (gocritic)
Lint (1.23.x, ubuntu-latest)
issues found
Lint (1.22.x, windows-latest): cns/healthserver/healthz_test.go#L267
Error return value of `w.Write` is not checked (errcheck)
Lint (1.22.x, windows-latest): cns/healthserver/healthz_test.go#L272
Error return value of `w.Write` is not checked (errcheck)
Lint (1.22.x, windows-latest): cns/healthserver/healthz_test.go#L203
httpNoBody: http.NoBody should be preferred to the nil request body (gocritic)
Lint (1.22.x, windows-latest): cns/healthserver/healthz_test.go#L253
preferStringWriter: kubeConfigFile.WriteString(tempKubeConfig) should be preferred to the kubeConfigFile.Write([]byte(tempKubeConfig)) (gocritic)
Lint (1.22.x, windows-latest)
issues found
Lint (1.23.x, windows-latest): cns/healthserver/healthz_test.go#L267
Error return value of `w.Write` is not checked (errcheck)
Lint (1.23.x, windows-latest): cns/healthserver/healthz_test.go#L272
Error return value of `w.Write` is not checked (errcheck)
Lint (1.23.x, windows-latest): cns/healthserver/healthz_test.go#L203
httpNoBody: http.NoBody should be preferred to the nil request body (gocritic)
Lint (1.23.x, windows-latest): cns/healthserver/healthz_test.go#L253
preferStringWriter: kubeConfigFile.WriteString(tempKubeConfig) should be preferred to the kubeConfigFile.Write([]byte(tempKubeConfig)) (gocritic)
Lint (1.23.x, windows-latest)
issues found
Lint (1.22.x, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Lint (1.22.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.23.x, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Lint (1.23.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.22.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
Lint (1.23.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