Skip to content

Conversation

@sbueringer
Copy link
Member

What this PR does / why we need it:
This PR adds the kube-api-linter. The config is heavily inspired by the config in core Cluster API: https://github.com/kubernetes-sigs/cluster-api/blob/main/.golangci-kal.yml

For now KAL is not enabled in CI, we will do that once we can use a version from KAL main again (currently we are using a branch from Joel).

Note: The linter is configured to only lint on the delta from main for now

The linter can be used by:

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 #

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 4, 2025
@sbueringer
Copy link
Member Author

/assign @zhanggbj @chrischdi @DanielXiao

Let me know if you have any questions about this PR :)

(We're going to use it for #3530)

Copy link
Contributor

@zhanggbj zhanggbj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 4, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 14a239321736fa48cd6716eb903753c04713c029

@sbueringer
Copy link
Member Author

Thx!

Merging already, will finalize the KAL setup once Fabrizio is back and when we enable KAL in CI

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbueringer

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 4, 2025
@k8s-ci-robot k8s-ci-robot merged commit 765db0d into kubernetes-sigs:main Aug 4, 2025
17 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.14 milestone Aug 4, 2025
@sbueringer sbueringer deleted the pr-kal branch August 4, 2025 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants