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

refactor codegen scripts to make it easier to generate two clients #3589

Merged
merged 4 commits into from
Feb 14, 2025

Conversation

dprotaso
Copy link
Contributor

@dprotaso dprotaso commented Feb 3, 2025

This simplifies the ListenerSet APIs PR

#3588

Release Note

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Feb 3, 2025
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 3, 2025
@dprotaso
Copy link
Contributor Author

dprotaso commented Feb 3, 2025

note - the order of the versions is changed in the clients because of it's the order (from find) inputted into client-gen

@dprotaso
Copy link
Contributor Author

dprotaso commented Feb 4, 2025

This is ready

@shaneutt shaneutt self-assigned this Feb 6, 2025
@shaneutt shaneutt requested review from shaneutt and mlavacca February 6, 2025 15:53
Copy link
Member

@shaneutt shaneutt left a comment

Choose a reason for hiding this comment

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

Thanks @dprotaso!

Could you please expand the description of the PR to cover in more detail the specific problems that this fixes?

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 8, 2025
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 9, 2025
Copy link
Member

@shaneutt shaneutt left a comment

Choose a reason for hiding this comment

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

/approve

But I would like someone else to look this over too and give the final LGTM

/cc @mlavacca @robscott @youngnick

@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 11, 2025
@shaneutt shaneutt added this to the v1.3.0 milestone Feb 11, 2025
Copy link
Member

@robscott robscott left a comment

Choose a reason for hiding this comment

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

Thanks @dprotaso!

/lgtm

Comment on lines +47 to +53
if [[ "${1:-stable}" == "experimental" ]]; then
readonly OUTPUT_DIR=pkg/clientx
readonly OUTPUT_PKG=sigs.k8s.io/gateway-api/pkg/clientx
else
readonly OUTPUT_DIR=pkg/client
readonly OUTPUT_PKG=sigs.k8s.io/gateway-api/pkg/client
fi
Copy link
Member

Choose a reason for hiding this comment

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

I'm a little curious if a single clientset would be better here. With that said, this will likely become clearer as we start working with ListenerSet. I'm fine with this as a starting point.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah this can be adjusted later

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dprotaso, robscott, shaneutt

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 needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 12, 2025
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 14, 2025
@k8s-ci-robot
Copy link
Contributor

New changes are detected. LGTM label has been removed.

@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 14, 2025
@shaneutt shaneutt added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 14, 2025
@k8s-ci-robot k8s-ci-robot merged commit a72c0e9 into kubernetes-sigs:main Feb 14, 2025
13 checks passed
@dprotaso dprotaso deleted the refactor-code-gen branch February 14, 2025 20:18
EyalPazz pushed a commit to EyalPazz/gateway-api that referenced this pull request Feb 16, 2025
…ubernetes-sigs#3589)

* refactor codegen scripts to make it easier to generate two clients

* add some newlines

* fix find invocation use -maxdepth and not -depth

* include requested comment
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/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
Development

Successfully merging this pull request may close these issues.

4 participants