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

site: add a Gateway API v1alpha2 guide #4122

Merged
merged 1 commit into from
Dec 8, 2021

Conversation

skriss
Copy link
Member

@skriss skriss commented Oct 19, 2021

Adds a second copy of the Gateway API
guide, for v1alpha2. Once Contour 1.20
is released, the v1alpha1 guide will
be dropped and the v1alpha2 guide will
be updated with the proper links.

Updates #4091.

Signed-off-by: Steve Kriss krisss@vmware.com

@skriss skriss added the do not merge Don't merge this PR until this label is removed. label Oct 19, 2021
@skriss skriss added this to the 1.20.0 milestone Oct 19, 2021
@skriss skriss requested a review from a team as a code owner October 19, 2021 17:44
@skriss skriss requested review from sunjayBhatia and youngnick and removed request for a team October 19, 2021 17:44
@skriss
Copy link
Member Author

skriss commented Oct 19, 2021

Let's hold off on merging this until just before 1.20 is released, since guides aren't currently versioned.

@skriss skriss added the release-note/docs A documentation change for the release notes. label Oct 19, 2021
@codecov
Copy link

codecov bot commented Oct 19, 2021

Codecov Report

Merging #4122 (6de0a92) into main (f547d76) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #4122   +/-   ##
=======================================
  Coverage   76.71%   76.71%           
=======================================
  Files         114      114           
  Lines       10049    10049           
=======================================
  Hits         7709     7709           
  Misses       2149     2149           
  Partials      191      191           

@skriss skriss force-pushed the gateway-v1alpha2-guide branch from c0ea4a9 to 18d12ac Compare October 19, 2021 17:51
@@ -129,7 +105,7 @@ This command creates:

- A Deployment named `kuard` in namespace `projectcontour` to run kuard as the test application.
- A Service named `kuard` in namespace `projectcontour` to expose the kuard application on TCP port 80.
- An HTTPRoute named `kuard` in namespace `projectcontour` to route requests for "*.projectcontour.io" to the kuard
- An HTTPRoute named `kuard` in namespace `projectcontour` to route requests for `local.projectcontour.io` to the kuard
Copy link
Member

Choose a reason for hiding this comment

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

Maybe move the sample HTTPRoute removed above to here so folks can copy/paste follow along?

Copy link
Member Author

Choose a reason for hiding this comment

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

The HTTPRoute is defined in https://github.com/projectcontour/contour/blob/18d12ac3a00eea97b88aab2eb4c8ecb36528eb85/examples/gateway/kuard/kuard.yaml (which is why I removed it from above), are you saying remove it from kuard.yaml and put it directly in the guide instead?

Copy link
Member

Choose a reason for hiding this comment

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

Not sure if it helps to see the route in the guide to understand what's going on. There's a balance between re-explaining how GatewayAPI works vs letting folks read up on those bits on their own.

Copy link
Member

Choose a reason for hiding this comment

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

We could possibly look at using the include functionality in Hugo to include the file directly?

@github-actions
Copy link

Marking this PR stale since there has been no activity for 14 days. It will be closed if there is no activity for another 30 days.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 23, 2021
@skriss skriss removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 23, 2021
@github-actions
Copy link

github-actions bot commented Dec 8, 2021

Marking this PR stale since there has been no activity for 14 days. It will be closed if there is no activity for another 30 days.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 8, 2021
Adds a second copy of the Gateway API
guide, for v1alpha2. Once Contour 1.20
is released, the v1alpha1 guide will
be dropped and the v1alpha2 guide will
be updated with the proper links.

Updates projectcontour#4091.

Signed-off-by: Steve Kriss <krisss@vmware.com>
@skriss skriss force-pushed the gateway-v1alpha2-guide branch from 5e722df to 6de0a92 Compare December 8, 2021 15:56
@skriss skriss changed the title site: update Gateway API guide for v1alpha2 site: add a Gateway API v1alpha2 guide Dec 8, 2021
@skriss
Copy link
Member Author

skriss commented Dec 8, 2021

Since we're releasing a beta, I updated this PR to add a v1alpha2 guide without dropping the v1alpha1 one. I'll do another PR closer to the 1.20 GA release to drop the old guide.

Side note: this is a good example of why it'd be nice to move to versioned guides (#3829)

@skriss skriss removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. do not merge Don't merge this PR until this label is removed. labels Dec 8, 2021
@skriss skriss merged commit 4ed0eb1 into projectcontour:main Dec 8, 2021
@skriss skriss deleted the gateway-v1alpha2-guide branch December 8, 2021 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/docs A documentation change for the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants