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

add github workflow to check supportedFeatures freshness #2754

Conversation

LiorLieberman
Copy link
Member

@LiorLieberman LiorLieberman commented Feb 5, 2024

What type of PR is this?

/kind test
/area conformance

What this PR does / why we need it:
Kubebuilder validation gets out of date is someone is adding a supportedFeature.
When a gateway controller publish supportedFeatures into the GWC, the validation blocks it if some features are not in that list.

Right now, suite.AllFeatures contains features that are not in the validation.

Which issue(s) this PR fixes:

This enables the implementation of #2163 in gateway controllers by fixing the discrepancy between the validation list and the actual features.
It also keep freshness of this kubebuilder validation list

Does this PR introduce a user-facing change?:

NONE

@k8s-ci-robot k8s-ci-robot added do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 5, 2024
@LiorLieberman LiorLieberman force-pushed the add-check-for-kubebuilder-validation branch from 569a4ca to 7d365b9 Compare February 5, 2024 17:57
@LiorLieberman LiorLieberman changed the title test feat: add github workflow to check supportedFeatures freshness Feb 5, 2024
@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Feb 5, 2024
@LiorLieberman LiorLieberman force-pushed the add-check-for-kubebuilder-validation branch from 7d365b9 to 916d8c4 Compare February 5, 2024 18:03
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 5, 2024
@LiorLieberman
Copy link
Member Author

/cc @levikobi @robscott

@LiorLieberman LiorLieberman force-pushed the add-check-for-kubebuilder-validation branch from c4b5850 to b40893e Compare February 5, 2024 18:10
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 5, 2024
Copy link
Member

@levikobi levikobi left a comment

Choose a reason for hiding this comment

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

I like the idea of this change, it's definitely going to remove the issue of the validation getting out of sync. I just have a small suggestion

.github/workflows/supported_features.yml Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 5, 2024
@LiorLieberman LiorLieberman force-pushed the add-check-for-kubebuilder-validation branch from b6b6dab to 54fd807 Compare February 6, 2024 08:56
@LiorLieberman LiorLieberman changed the title feat: add github workflow to check supportedFeatures freshness add github workflow to check supportedFeatures freshness Feb 6, 2024
@LiorLieberman LiorLieberman force-pushed the add-check-for-kubebuilder-validation branch from 50b0f16 to ba96bfe Compare February 6, 2024 17:11
@robscott
Copy link
Member

robscott commented Feb 6, 2024

Thanks @LiorLieberman!

/lgtm
/approve

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: LiorLieberman, robscott

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 Feb 6, 2024
@k8s-ci-robot k8s-ci-robot merged commit 38f6299 into kubernetes-sigs:main Feb 6, 2024
8 checks passed
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. release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants