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

Document the route kinds compatible for each protocolType #2263

Merged

Conversation

abs007
Copy link
Contributor

@abs007 abs007 commented Aug 5, 2023

What type of PR is this?
/kind documentation

What this PR does / why we need it:
This PR documents the route kinds compatible for each protocolType

Which issue(s) this PR fixes:
Fixes #1515

Does this PR introduce a user-facing change?:

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/documentation Categorizes issue or PR as related to documentation. labels Aug 5, 2023
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Aug 5, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Aug 5, 2023
@k8s-ci-robot
Copy link
Contributor

Welcome @abs007!

It looks like this is your first PR to kubernetes-sigs/gateway-api 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/gateway-api has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 5, 2023
@k8s-ci-robot
Copy link
Contributor

Hi @abs007. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Aug 5, 2023
@shaneutt shaneutt added this to the v1.0.0 milestone Aug 7, 2023
@shaneutt
Copy link
Member

shaneutt commented Aug 7, 2023

/cc @mlavacca

Wanted to check if this is what you had in mind when you created #1512

@shaneutt shaneutt added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Aug 7, 2023
Copy link
Member

@mlavacca mlavacca left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, @abs007!

It looks like you need to run make update-codegen to fix the CI issue.

Wanted to check if this is what you had in mind when you created #1512

Yep, I meant something similar. However, I'm not 100% sure about the exhaustiveness and the correctness of the data. I think it makes sense to double-check it with the maintainers.

/cc @shaneutt @robscott @youngnick

@youngnick
Copy link
Contributor

Thanks for laying this out so clearly, @abs007!

Seeing it like this, makes me think about the fact that the protocol is currently effectively a way to limit the kinds of Routes that may attach to a Listener - it's almost syntactic sugar for specific allowedRoutes config. I seem to recall having discussions about whether to allow protocol: TLS listener to have HTTPRoutes attach (implying that TLS mode must also be set to Terminate), but it seems like it may be better to keep things at this very simple level.

It's probably also worth checking if we have any conformance tests that don't fit into these buckets too.

@abs007
Copy link
Contributor Author

abs007 commented Aug 17, 2023

Thank you @youngnick!

Can you give a bit more context into the conformance tests bit?

// HTTPS: HTTPRoutes, GRPCRoutes
// TCP: TCPRoute
// UDP: UDPRoute
// TLS: TLSRoute
Copy link
Contributor

Choose a reason for hiding this comment

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

@youngnick
Copy link
Contributor

Thanks for the changes @abs007, I meant that it would be good to check that there's nothing else that we conformance test for - I suspect @skriss may have picked up one extra case, but it would be good if we could make sure there aren't any others.

@abs007
Copy link
Contributor Author

abs007 commented Aug 23, 2023

@youngnick and is this something that I verify by going through the code in the conformance folder? Asking as I'm a bit confused.

@youngnick
Copy link
Contributor

Yeah, I don't think there's any quicker way than to check the conformance tests to make sure we're not allowing any other types of traffic. Sorry.

@abs007
Copy link
Contributor Author

abs007 commented Aug 24, 2023

That's alright. I just needed confirmation on where to look at.

@abs007
Copy link
Contributor Author

abs007 commented Sep 2, 2023

I've pushed a protocol:route combination that I could find.

@mlavacca
Copy link
Member

I've pushed a protocol:route combination that I could find.

Can you point out where did you find such a combination, please?

@youngnick
Copy link
Contributor

/remove-lifecycle rotten

/approve

/hold

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. labels Mar 27, 2024
apis/v1/gateway_types.go Outdated Show resolved Hide resolved
site-src/concepts/api-overview.md Outdated Show resolved Hide resolved
Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 17, 2024
Copy link
Member

@mlavacca mlavacca left a comment

Choose a reason for hiding this comment

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

Hi @abs007! this lgtm, if you can rebase it, I think we can merge it 👍

@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 21, 2024
@shaneutt
Copy link
Member

/approve
/lgtm
/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 21, 2024
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 21, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abs007, shaneutt, youngnick

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 removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 21, 2024
@k8s-ci-robot
Copy link
Contributor

New changes are detected. LGTM label has been removed.

@shaneutt shaneutt added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 21, 2024
@k8s-ci-robot k8s-ci-robot merged commit a518fef into kubernetes-sigs:main Jun 21, 2024
8 checks passed
@candita
Copy link
Contributor

candita commented Jun 24, 2024

We haven't documented some of these changes completely.
/revert a518fef

shaneutt added a commit that referenced this pull request Jun 24, 2024
BobyMCbobs pushed a commit to BobyMCbobs/kubernetes-sigs-gateway-api that referenced this pull request Jul 10, 2024
…-sigs#2263)

* Document the route kinds compatible for each protocolType

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* Add changes

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* Run make command

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* Fix grammar

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* Run make command

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* Add suggested changes

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* chore: run generators

---------

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>
Co-authored-by: Shane Utt <shaneutt@linux.com>
BobyMCbobs pushed a commit to BobyMCbobs/kubernetes-sigs-gateway-api that referenced this pull request Jul 10, 2024
BobyMCbobs pushed a commit to BobyMCbobs/kubernetes-sigs-gateway-api that referenced this pull request Jul 22, 2024
…-sigs#2263)

* Document the route kinds compatible for each protocolType

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* Add changes

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* Run make command

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* Fix grammar

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* Run make command

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* Add suggested changes

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* chore: run generators

---------

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>
Co-authored-by: Shane Utt <shaneutt@linux.com>
BobyMCbobs pushed a commit to BobyMCbobs/kubernetes-sigs-gateway-api that referenced this pull request Jul 22, 2024
BobyMCbobs pushed a commit to BobyMCbobs/kubernetes-sigs-gateway-api that referenced this pull request Jul 22, 2024
…-sigs#2263)

* Document the route kinds compatible for each protocolType

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* Add changes

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* Run make command

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* Fix grammar

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* Run make command

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* Add suggested changes

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>

* chore: run generators

---------

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>
Co-authored-by: Shane Utt <shaneutt@linux.com>
BobyMCbobs pushed a commit to BobyMCbobs/kubernetes-sigs-gateway-api that referenced this pull request Jul 22, 2024
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. kind/documentation Categorizes issue or PR as related to documentation. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docs: specify the route kinds compatible with each protocolType
8 participants