ci: use golangci-lint v2
update golangci-lint to v2 and use autofix
Description of the change: update golangci-lint to v2
Motivation for the change: allow golangci-lint v2 features usage
Checklist
If the pull request includes user-facing changes, extra documentation is required:
- [ ] Add a new changelog fragment in
changelog/fragments(seechangelog/fragments/00-template.yaml) - [ ] Add or update relevant sections of the docs website in
website/content/en/docs
sanity / docs check failed with:
External link https://kuttl.dev/docs/testing/reference.html#testsuite failed: response code 0 means something's wrong.
but no DNS entry seems present for kuttl.dev
Hi @PascalBourdier Thanks for the contribution, I'll try to review this pr this week. The DNS issue is known, hopefully the website comes back.
- kudobuilder/kuttl#629
sanity / docscheck failed with:External link https://kuttl.dev/docs/testing/reference.html#testsuite failed: response code 0 means something's wrong.but no DNS entry seems present for
kuttl.dev
FTR I'd recommend changing this to https://github.com/kudobuilder/kuttl/blob/main/docs/testing/reference.md#testsuite either way, the docs on the website were perpetually out of date, and if the site is restored it will most likely become a redirect.
@porridge Thanks for the ref, I raised the below PR that should at least fix the DNS issue, but there is still likely to be failures in this CI step, since there are over 800 links being checked.
- Relates: #7030