Skip to content

Conversation

david-martin
Copy link
Contributor

What type of PR is this?

/kind documentation

What this PR does / why we need it:

Clarify potential terminology confusion around Gateway API & API Gateway

Which issue(s) this PR fixes:

Fixes #1157

Does this PR introduce a user-facing change?:

Yes.

Clarify wording on website around Gateway API vs API Gateway

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/documentation Categorizes issue or PR as related to documentation. labels Jul 17, 2023
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 17, 2023
@k8s-ci-robot
Copy link
Contributor

Welcome @david-martin!

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 the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jul 17, 2023
@k8s-ci-robot
Copy link
Contributor

Hi @david-martin. 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 the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 17, 2023
@david-martin david-martin force-pushed the api-gateway-wording branch from 699414a to aa38d66 Compare July 17, 2023 13:15
Copy link

@gyohuangxin gyohuangxin left a comment

Choose a reason for hiding this comment

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

@david-martin Thanks for your PR, I leave some my thoughts for your reference.


Gateway API is an interface, or set of resources, that model service networking
in Kubernetes. One of the main resources is a `Gateway`. If you implement
Gateway API, you are a Gateway provider. A `Gateway` resource declares the

Choose a reason for hiding this comment

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

I think it's a little bit confusing to say "If you implement Gateway API, you are a Gateway provider", how about "As a Gateway Provider, you can implement the Gateway API to model Kubernetes service networking in an expressive, extensible, and role-oriented way." ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks.
All great suggestions, which have now been incorporated

@gyohuangxin
Copy link

/ok-to-test

@k8s-ci-robot k8s-ci-robot 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 Jul 20, 2023
@david-martin david-martin force-pushed the api-gateway-wording branch from bf08257 to dcaf850 Compare July 20, 2023 09:00
Copy link

@gyohuangxin gyohuangxin left a comment

Choose a reason for hiding this comment

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

Another nit, otherwise lgtm.

@gyohuangxin
Copy link

@robscott Could you please give your words on this?

@david-martin david-martin force-pushed the api-gateway-wording branch from dcaf850 to bb17242 Compare July 20, 2023 09:25
The concept of a Gateway is a networking component that allows data to transfer from one
network to another network.

An API Gateway is a Gateway implementation that deals more specifically with backend services
Copy link
Contributor

Choose a reason for hiding this comment

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

imo this doesnt quite feel right.
I asked ChatGPT what an API Gateway was and here is its answer
Screenshot 2023-07-20 at 10 37 58 AM

a suggestion would be to consider reframing this as API Gateway is a Gateway implementation that deals with Request Routing, Security and many more things like Caching, Monitoring, Transformations where as Gateway API is an interface focused on defining standards for networking and security settings associated with Ingress and the Mesh

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see what you're getting at, focusing on the features.

My intention here was to distinguish between a gateway (abstract networking thing) and an API gateway (networking thing that exposes backend services via APIs).
My preference was for less detail, and let the reader do their own research on what are the detailed features an API Gateway might provide are.

If you'd like to suggest any changes though via the github suggestion feature, that would allow others to chime in more easily too.

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 @david-martin! This has been such a common question, I'm glad you're taking the time to answer it in our docs.

@david-martin david-martin force-pushed the api-gateway-wording branch from cff4796 to f2278eb Compare July 25, 2023 10:18
@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 Jul 25, 2023
@david-martin
Copy link
Contributor Author

david-martin commented Jul 25, 2023

Pushed up changes with latest round of feedback.

The question What's the difference between Gateway API and an API Gateway now shows up on the index page and faq page.
The other question about API Mgt has been moved to the faq page.

Removed duplicate wording, reordered the answer paragraphs to main question & wrapped at 80 characters.

edit fixed up some formatting issues on the faq page as well

site-src/faq.md Outdated
Gateway type (or class) to instantiate and its configuration. As a Gateway
Provider, you can implement the Gateway API to model Kubernetes service
networking in an expressive, extensible, and role-oriented way.
Most Gateway API implementations are API Gateways to some extent, but not all
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Most Gateway API implementations are API Gateways to some extent, but not all
Most Gateway API implementations are subsets of API Gateways, but not all

Copy link
Member

Choose a reason for hiding this comment

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

I actually personally prefer "to some extent" here as it leaves more flexibility and allows for full API Gateways to also implement Gateway API. I think it's possible that fully featured API Gateways would implement Gateway API + provide configuration through other means to provide full API Gateway functionality.

@robscott
Copy link
Member

Thanks @david-martin! Will leave final LGTM for someone else.

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: david-martin, 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 Jul 25, 2023
site-src/faq.md Outdated
capabilities of a backend service, while providing extra capabilities for
traffic routing and manipulation, such as load balancing, request and response
transformation, and sometimes more advanced features like authentication and
authorization, rate limiting, and circuit breaking.
Copy link
Contributor

Choose a reason for hiding this comment

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

Tiny nit: One extra newline here will ensure these paragraphs are separated in the rendered text, which will make this easier to read.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I played around with this, having the extra newline as you suggest.
However, when viewing the preview in netlify I noticed odd formatting.
Here's a screenshot with newlines

image

and without

image

hence why I went without.
I'm not sure how best to resolve this, without maybe dropping to raw html?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorted.
Looks like the indentation was off on a number of blocks.

image

Copy link
Contributor

@youngnick youngnick left a comment

Choose a reason for hiding this comment

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

Basically LGTM, just one small formatting nit and then I'll do the honours.

Thanks for this @david-martin, this is great work.

@david-martin david-martin force-pushed the api-gateway-wording branch from 7e13e47 to 8296590 Compare July 27, 2023 08:33
@david-martin
Copy link
Contributor Author

just one small formatting nit and then I'll do the honours.

@youngnick Good to go here

@youngnick
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 27, 2023
@k8s-ci-robot k8s-ci-robot merged commit 5eaacdc into kubernetes-sigs:main Jul 27, 2023
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 Denotes a PR that will be considered when it comes time to generate release notes. 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.

Improvement to the website description of what a Gateway API is and is not
6 participants