Add linter for the samples scaffolded under docs #4445
Open
Description
What do you want to happen?
Currently, the samples scaffolded under the docs directory do not have any linting process to ensure consistency and adherence to best practices. This issue proposes adding a linter to verify the quality of the following samples:
- docs/book/src/cronjob-tutorial/testdata/project
- docs/book/src/getting-started/testdata/project
- docs/book/src/multiversion-tutorial/testdata/project
We should create an action to lint them as we have for the samples under testdata
See: https://github.com/kubernetes-sigs/kubebuilder/blob/master/.github/workflows/lint-sample.yml
in this task, we need to create the action and fix any linter issue found to ensure that it pass in the CI
Extra Labels
No response