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

docs(kgo): add Konnect entities documentation #8084

Merged
merged 17 commits into from
Oct 30, 2024
Merged

Conversation

czeslavo
Copy link
Contributor

@czeslavo czeslavo commented Oct 24, 2024

Description

Adds a Konnect entities prerequisites building block (describing the KGO installation and KonnectAuthConfiguration creation steps) along with a first guide describing KonnectGatewayControlPlane usage. It also adds guides for:

  • Architecture overview
  • KongRoute and KongService
  • KongConsumer and Credentials
  • KongKey and KeySet
  • KongUpstream and Target
  • KongCertificate (+KongSNI) and KongCACertificate
  • KongVault
  • KongDataPlaneClientCertificate
  • Tagging and labeling entities

It's based on #8083 which prepares v1.4.x release nav etc.

Part of Kong/gateway-operator#439.

Testing instructions

Preview links:

Checklist

@czeslavo czeslavo self-assigned this Oct 24, 2024
@czeslavo czeslavo added the team-k8s Kubernetes task tracking (including KIC,KGO) label Oct 24, 2024
@czeslavo czeslavo added this to the KGO v1.4.x milestone Oct 24, 2024
@czeslavo czeslavo added the review:general Review for general accuracy and presentation. Does the doc work? Does it output correctly? label Oct 24, 2024
@czeslavo czeslavo changed the base branch from prepare-kgo-1.4 to main October 24, 2024 16:54
@czeslavo czeslavo force-pushed the kgo/konnect-entities-guide branch from 2a09335 to c1077b7 Compare October 24, 2024 17:02
Copy link

netlify bot commented Oct 24, 2024

Deploy Preview for kongdocs ready!

Name Link
🔨 Latest commit 3100cd5
🔍 Latest deploy log https://app.netlify.com/sites/kongdocs/deploys/67225646b5027300089d223d
😎 Deploy Preview https://deploy-preview-8084--kongdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
9 paths audited
Performance: 93 (🟢 up 2 from production)
Accessibility: 92 (no change from production)
Best Practices: 98 (🟢 up 8 from production)
SEO: 99 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@czeslavo czeslavo requested a review from a team October 24, 2024 17:20
@czeslavo czeslavo changed the base branch from main to prepare-kgo-1.4 October 24, 2024 17:21
@czeslavo czeslavo marked this pull request as ready for review October 24, 2024 18:11
@czeslavo czeslavo requested a review from a team as a code owner October 24, 2024 18:11
@czeslavo czeslavo changed the title docs(kgo): add intial Konnect entities documentation docs(kgo): add Konnect entities documentation Oct 25, 2024
@czeslavo czeslavo changed the base branch from prepare-kgo-1.4 to main October 25, 2024 10:14
@czeslavo czeslavo force-pushed the kgo/konnect-entities-guide branch 3 times, most recently from 48c69fe to 1f00a26 Compare October 25, 2024 16:24
@czeslavo czeslavo changed the base branch from main to prepare-kgo-1.4 October 25, 2024 16:34
Copy link
Member

@pmalek pmalek left a comment

Choose a reason for hiding this comment

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

Minor nits, but overall this looks solid 👍

Comment on lines 84 to 93
The output should look similar to this:

```console
{
"observedGeneration": 1,
"reason": "Programmed",
"status": "True",
"type": "Programmed"
}
```
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 wondering if this wouldn't make sense to put this into an importable/includable snippet to deduplicate some code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 d351492

@czeslavo czeslavo changed the base branch from prepare-kgo-1.4 to main October 28, 2024 17:15
@czeslavo czeslavo force-pushed the kgo/konnect-entities-guide branch from 58b2461 to 2c459b5 Compare October 28, 2024 17:17
@czeslavo czeslavo changed the base branch from main to prepare-kgo-1.4 October 28, 2024 17:22
@czeslavo czeslavo force-pushed the kgo/konnect-entities-guide branch 2 times, most recently from abcf11a to df9e6a9 Compare October 28, 2024 20:45
@czeslavo czeslavo changed the base branch from prepare-kgo-1.4 to main October 28, 2024 20:50
@czeslavo czeslavo force-pushed the kgo/konnect-entities-guide branch from df9e6a9 to bca5c37 Compare October 28, 2024 20:51
@czeslavo czeslavo changed the base branch from main to prepare-kgo-1.4 October 28, 2024 20:52
You can verify the `KongService` was reconciled successfully by checking its `Programmed` condition.

```shell
kubectl get kongservice service -o=jsonpath='{.status.conditions}' | jq '.[] | select(.type == "Programmed")'
Copy link
Member

Choose a reason for hiding this comment

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

kubectl natively supports filtering:

... -o=jsonpath="{.status.conditions[?(@.type==\"Programmed\")]}"

If we want to pretty print this then we can just pipe it to jq at the very end.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in d351492

@pmalek pmalek changed the base branch from prepare-kgo-1.4 to main October 29, 2024 15:52
@pmalek pmalek changed the base branch from main to prepare-kgo-1.4 October 29, 2024 15:58
Copy link
Contributor

@Guaris Guaris left a comment

Choose a reason for hiding this comment

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

Simple copy edits, and terminology things. Let me know if anything doesn't make sense.

app/_includes/md/kgo/konnect-entities-prerequisites.md Outdated Show resolved Hide resolved
to create a `KonnectAPIAuthConfiguration` object that will be used by the {{site.kgo_product_name}} to authenticate
with Konnect APIs.

### Create a Konnect API Auth Configuration
Copy link
Contributor

@Guaris Guaris Oct 29, 2024

Choose a reason for hiding this comment

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

Suggested change
### Create a Konnect API Auth Configuration
### Create a {{site.konnect_product_name}} API Auth Configuration

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'm not sure about lower casing this. I referred to Writing for Kong guide and it says:

Use title case for titles of pieces and calls to action. Use sentence case for all other headers.

This header is a call to action, so I'd keep it capitalized, WDYT?

Copy link
Contributor

@Guaris Guaris Oct 30, 2024

Choose a reason for hiding this comment

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

Ah, the marketing style guide is different than the docs style guide. We specifically use sentence case for all headers.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 3100cd5

app/_includes/md/kgo/konnect-entities-prerequisites.md Outdated Show resolved Hide resolved
app/_src/gateway-operator/guides/konnect-entities/vault.md Outdated Show resolved Hide resolved
app/_src/gateway-operator/guides/konnect-entities/vault.md Outdated Show resolved Hide resolved
app/_src/gateway-operator/guides/konnect-entities/vault.md Outdated Show resolved Hide resolved
app/_src/gateway-operator/guides/konnect-entities/vault.md Outdated Show resolved Hide resolved
Base automatically changed from prepare-kgo-1.4 to main October 29, 2024 20:22
@pmalek pmalek force-pushed the kgo/konnect-entities-guide branch from d351492 to 0058b19 Compare October 29, 2024 20:28
@pmalek
Copy link
Member

pmalek commented Oct 29, 2024

Rebased on main after merging #8083

@czeslavo czeslavo force-pushed the kgo/konnect-entities-guide branch from 1246263 to 3f077c5 Compare October 30, 2024 08:44
@czeslavo czeslavo requested a review from Guaris October 30, 2024 08:52
@Guaris Guaris merged commit de0a7b0 into main Oct 30, 2024
15 checks passed
@Guaris Guaris deleted the kgo/konnect-entities-guide branch October 30, 2024 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review:general Review for general accuracy and presentation. Does the doc work? Does it output correctly? team-k8s Kubernetes task tracking (including KIC,KGO)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants