Skip to content

chore: migrate to kubebuilder v4 #2

chore: migrate to kubebuilder v4

chore: migrate to kubebuilder v4 #2

Triggered via pull request December 15, 2024 11:56
Status Failure
Total duration 2m 5s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
Run on Ubuntu: internal/pkg/prometheus/client.go#L117
Error return value of `r.Body.Close` is not checked (errcheck)
Run on Ubuntu: internal/webhook/v1alpha1/phasedrollout_webhook_test.go#L89
Error return value of `defaulter.Default` is not checked (errcheck)
Run on Ubuntu: internal/controller/phasedrollout_controller_test.go#L688
Error return value of `fmt.Fprintf` is not checked (errcheck)
Run on Ubuntu: internal/controller/phasedrollout_controller_test.go#L697
Error return value of `fmt.Fprintf` is not checked (errcheck)
Run on Ubuntu: internal/controller/phasedrollout_controller_test.go#L477
string `web-0000000001` has 6 occurrences, make it a constant (goconst)
Run on Ubuntu: internal/controller/phasedrollout_controller_test.go#L436
string `web-0000000000` has 3 occurrences, make it a constant (goconst)
Run on Ubuntu: internal/controller/phasedrollout_controller.go#L366
cyclomatic complexity 38 of func `(*PhasedRolloutReconciler).rollout` is high (> 30) (gocyclo)
Run on Ubuntu: api/v1alpha1/phasedrollout_types.go#L167
`actualy` is a misspelling of `actually` (misspell)
Run on Ubuntu: internal/controller/phasedrollout_controller.go#L550
`permanet` is a misspelling of `permanent` (misspell)
Run on Ubuntu: internal/controller/phasedrollout_controller.go#L573
`permanet` is a misspelling of `permanent` (misspell)
Run on Ubuntu
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636