Skip to content
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

API Linting Tracking Issue #11834

Open
14 of 16 tasks
JoelSpeed opened this issue Feb 12, 2025 · 9 comments
Open
14 of 16 tasks

API Linting Tracking Issue #11834

JoelSpeed opened this issue Feb 12, 2025 · 9 comments
Assignees
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@JoelSpeed
Copy link
Contributor

JoelSpeed commented Feb 12, 2025

As part of #11733, we have configured KAL, that kube-api-linter to run against the APIs within this repository.

There are a number of linter rules that need to be reviewed and enabled 1 by 1.

This issue is to track the implementation of enabling each of these linters


TODO


Not doing

NoPhase

Per discussion in July 2024, we are keeping phase fields for now.
See #10897 (comment) and #10897 (comment) for the context on why we are still keeping phases.

@k8s-ci-robot k8s-ci-robot added needs-priority Indicates an issue lacks a `priority/foo` label and requires one. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Feb 12, 2025
@fabriziopandini fabriziopandini added help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. triage/accepted Indicates an issue or PR is ready to be actively worked on. labels Feb 13, 2025
@k8s-ci-robot k8s-ci-robot removed needs-priority Indicates an issue lacks a `priority/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Feb 13, 2025
@fabriziopandini fabriziopandini added the kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API label Feb 13, 2025
@k8s-ci-robot k8s-ci-robot removed the needs-kind Indicates a PR lacks a `kind/foo` label and requires one. label Feb 13, 2025
@sivchari
Copy link
Member

sivchari commented Feb 17, 2025

Hi @JoelSpeed
I'd work on this.
/assign

@JoelSpeed
Copy link
Contributor Author

By all means! Just comment here before you pick up one of the rules to enable as between us I think we can open up the PRs in parallel for discussion

@sivchari
Copy link
Member

I opened the PR for each linter to make it enabled

@tsuzu
Copy link
Contributor

tsuzu commented Mar 4, 2025

I'm working on commentstart linter in #11238 .
Let me assign assign myself.
/assign

@sbueringer
Copy link
Member

All yours :) Thx for working on this

@sbueringer
Copy link
Member

sbueringer commented Mar 13, 2025

I think the last open task for now is

  • Follow-up for Items fields (exclude "field Items must be marked as optional or required")

Given #11909 (comment), @JoelSpeed I'll assume you'll eventually get back to us and then we apply the marker accordingly (and/or adjust KAL).

I think otherwise we can close this issue.

I think it would be good to open a new issue, to track upcoming KAL linters so we have an overview on what we want to pick up going forward, WDYT?

@JoelSpeed
Copy link
Contributor Author

Happy to either create that issue now or create issues as we get to them implemented in KAL. I expect it may take some time before we complete all of the requested KAL linters so opening an issue now may cause the issue to live for some time. I'm ok with that if you are though

@sbueringer
Copy link
Member

sbueringer commented Mar 13, 2025

I think let's go with:

create that issue now

I think the upside is that it gives some visiblity to the issues we are not yet linting for and thus have to focus a bit more on during API reviews.

(Also fine to move the Items topic from #11834 (comment) there)

@JoelSpeed
Copy link
Contributor Author

Created #11967

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

6 participants