cert-manager-operator
cert-manager-operator copied to clipboard
ci: migrate golangci to v2 schema and correct issues
Similar to other v2 migrations:
- https://github.com/redhat-best-practices-for-k8s/certsuite/pull/2875
There were a number of things that the latest version of golangci-lint flagged for fixing.
Also, I added a .github/workflows/pre-main.yaml that contains a job to run the linter prior to merging PRs.