cloudstack-kubernetes-provider
cloudstack-kubernetes-provider copied to clipboard
Update debugging docs, GitHub Actions and golangci config
This pull request updates the project's development tooling and documentation to improve compatibility, maintainability, and developer experience. The most significant changes are updates to GitHub Actions workflows and golangci-lint configuration, the addition of a lint target to the Makefile, and enhancements to the documentation for building and debugging.
CI/CD and Linting Improvements:
- Updated GitHub Actions workflows to use the latest versions of
ubuntu-latest,actions/checkout@v6, andactions/setup-go@v6, and upgradedgolangci-lint-actionto v9 for improved reliability and support. (.github/workflows/build.yml,.github/workflows/build-docker-image.yml,.github/workflows/golangci-lint.yml) [1] [2] [3] - Major overhaul of
.golangci.yml: switched to version 2 config format, enabled/disabled specific linters, and added exclusions for generated code and certain paths for more precise linting. [1] [2] - Added a
linttarget to theMakefileto rungolangci-lintandgofmt, improving local code quality checks.
Documentation Updates:
- Updated the required Go version from 1.21 to 1.23 in
README.mdto reflect current build requirements. - Improved example usage and added a new section on debugging with VSCode, including a sample
launch.jsonconfiguration for easier local development.
Minor Code Quality Fixes:
- Standardized error message formatting in
cloudstack_loadbalancer.gofor consistency.