-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linting for K8s YAML files #1901
Linting for K8s YAML files #1901
Conversation
Thanks @Rishit-dagli for the PR Charmed-Katib is not maintained by community. You can create a new one. |
Ah, thanks for the info. I'll create a new workflow. |
@Rishit-dagli Thanks for creating this PR! @johnugeorge |
we can do the same as https://github.com/kubeflow/katib/blob/master/.github/workflows/test-shell-script.yaml#L17 using Also, should we treat warnings as errors using strict flag? |
SGTM @johnugeorge @Rishit-dagli Do we already have any manifests to hit --------------------------- edit ---------------------------
It might be better not to use a strict flag. |
I agree with you @tenzen-y :) Lots of our example manifests might violates line-length rule because of useful comments for users |
https://github.com/kubeflow/katib/runs/6989547788?check_suite_focus=true I see two warnings here |
I will edit the YAML files accordingly, I believe this should be done in a separate PR since it isn't actually "adding a linter", what do you think? |
Please rebase |
Done ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! @Rishit-dagli
/lgtm
/assign @johnugeorge |
Thanks @Rishit-dagli /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: johnugeorge, Rishit-dagli, tenzen-y The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
This PR verifies the format of YAML files in this repo using yamllint as discussed in #1734 (comment) and #1859
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #1859
Checklist: