Skip to content

Add ai gateway installation instructions to doc site#582

Merged
menakaj merged 2 commits intowso2:mainfrom
menakaj:main
Mar 18, 2026
Merged

Add ai gateway installation instructions to doc site#582
menakaj merged 2 commits intowso2:mainfrom
menakaj:main

Conversation

@menakaj
Copy link
Contributor

@menakaj menakaj commented Mar 18, 2026

Purpose

Describe the problems, issues, or needs driving this feature/fix and include links to related issues in the following format: Resolves issue1, issue2, etc.

Goals

Describe the solutions that this feature/fix will introduce to resolve the problems described above

Approach

Describe how you are implementing the solutions. Include an animated GIF or screenshot if the change affects the UI (email documentation@wso2.com to review all UI text). Include a link to a Markdown file or Google doc if the feature write-up is too long to paste here.

User stories

Summary of user stories addressed by this change>

Release note

Brief description of the new feature or bug fix as it will appear in the release notes

Documentation

Link(s) to product documentation that addresses the changes of this PR. If no doc impact, enter �N/A� plus brief explanation of why there�s no doc impact

Training

Link to the PR for changes to the training content in https://github.com/wso2/WSO2-Training, if applicable

Certification

Type �Sent� when you have provided new/updated certification questions, plus four answers for each question (correct answer highlighted in bold), based on this change. Certification questions/answers should be sent to certification@wso2.com and NOT pasted in this PR. If there is no impact on certification exams, type �N/A� and explain why.

Marketing

Link to drafts of marketing content that will describe and promote this feature, including product page changes, technical articles, blog posts, videos, etc., if applicable

Automation tests

  • Unit tests

    Code coverage information

  • Integration tests

    Details about the test cases and coverage

Security checks

Samples

Provide high-level details about the samples related to this feature

Related PRs

List any other related PRs

Migrations (if applicable)

Describe migration steps and platforms on which migration has been tested

Test environment

List all JDK versions, operating systems, databases, and browser/versions on which this feature/fix was tested

Learning

Describe the research phase and any blog posts, patterns, libraries, or add-ons you used to solve the problem.

Summary by CodeRabbit

  • Documentation
    • Added installation guide for the AI Gateway Extension across managed-cluster, quick-start, and self-hosted scenarios.
    • Includes configuration defaults, installation commands, verification steps, and a note that the AI Gateway extension should be installed last.
    • Removed the Build Extension verification from the managed-cluster guide and noted the AI Gateway extension is optional for self-hosted setups.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 18, 2026

Warning

Rate limit exceeded

@menakaj has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 8 minutes and 30 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 2b8460b0-ab37-4b71-837e-e9d846a782dc

📥 Commits

Reviewing files that changed from the base of the PR and between 393bfda and c484e24.

📒 Files selected for processing (2)
  • website/docs/getting-started/managed-cluster.mdx
  • website/docs/getting-started/self-hosted-cluster.mdx
📝 Walkthrough

Walkthrough

Documentation updates across three deployment guides (managed cluster, quick-start, and self-hosted cluster) that remove the Build Extension verification from managed-cluster, introduce a new AI Gateway Extension installation step (final step) with configuration, Helm install commands, and verification instructions; the AI Gateway step is optional in self-hosted.

Changes

Cohort / File(s) Summary
Managed Cluster Guide
website/docs/getting-started/managed-cluster.mdx
Removed Build Extension verification from Step 8; added final step (Install AI Gateway Extension / Step 10) with purpose, required ordering (must run last), config variables, Helm install commands, and a dedicated verification section.
Quick Start Guide
website/docs/getting-started/quick-start.mdx
Inserted Step 8: "AI Gateway Extension" into the installation checklist and the "What Happens During Installation" sequence, describing registration/installation of WSO2 AI Gateway for LLM Provider management.
Self‑Hosted Cluster Guide
website/docs/getting-started/self-hosted-cluster.mdx
Added Step 9: Install AI Gateway Extension including purpose (register AI Gateway with Agent Manager), last-step dependency notes (Agent Manager health, IDP readiness), config variables with defaults, Helm install command (amp-ai-gateway v0.9.0), bootstrap wait and verification; notes that this extension is optional.

Sequence Diagram(s)

sequenceDiagram
  participant Admin
  participant Helm
  participant AI_Gateway as AI Gateway
  participant AgentMgr as Agent Manager
  participant IDP
  Admin->>Helm: run helm install amp-ai-gateway (config vars)
  Helm->>AI_Gateway: deploy pods & service
  AI_Gateway->>AgentMgr: register as LLM Provider (agentManager.apiUrl)
  AgentMgr->>IDP: validate identity (agentManager.idp.tokenUrl)
  AgentMgr-->>AI_Gateway: return registration confirmation
  Admin->>AgentMgr: verify registration (kubectl/health)
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰✨ I hopped through docs to plant a seed,

An AI gate to do the deed,
Helm charts rolled and tokens shared,
Agents nod, the gateway's paired,
A tiny rabbit cheered indeed.

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is entirely unfinished with all template sections left empty (only headings remain), providing no implementation details, rationale, or context for the changes. Complete all required sections including Purpose (with issue links), Goals, Approach, User stories, Release note, Documentation impact, and others as applicable.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately and clearly summarizes the main change—adding AI Gateway installation instructions to the documentation site.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

a5anka
a5anka previously approved these changes Mar 18, 2026
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@website/docs/getting-started/managed-cluster.mdx`:
- Around line 633-659: The "Step 9: Install AI Gateway Extension" section
conflicts with its own "must be last" requirement and duplicates Step 9; move
the entire AI Gateway Extension section (heading "Step 9: Install AI Gateway
Extension", the configuration variables table including
apiGateway.controlPlane.host, agentManager.apiUrl, agentManager.idp.tokenUrl,
and the Helm install block) to the end of Phase 2 so it becomes the final step,
update its step number accordingly (renumber from Step 9 to the appropriate
final step), and ensure the surrounding sections (e.g., Evaluation Extension)
retain correct sequential numbering after the move.

In `@website/docs/getting-started/self-hosted-cluster.mdx`:
- Line 644: The document duplicates the "Step 8" heading for the AI Gateway
installation; change the heading "### Step 8: Install AI Gateway Extension" to
"### Step 9: Install AI Gateway Extension" and update any adjacent references to
step numbers (including the earlier "Evaluation Extension" which is Step 8) so
the final "must be done last" instruction is unambiguous and reflects the
corrected ordering.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: dcec2f8d-856e-438c-bb72-c5e2e51e4a47

📥 Commits

Reviewing files that changed from the base of the PR and between 0f51a90 and 805a7d8.

📒 Files selected for processing (3)
  • website/docs/getting-started/managed-cluster.mdx
  • website/docs/getting-started/quick-start.mdx
  • website/docs/getting-started/self-hosted-cluster.mdx

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 4

🧹 Nitpick comments (1)
website/docs/getting-started/managed-cluster.mdx (1)

703-705: Missing verification steps for AI Gateway Extension.

Unlike the self-hosted cluster guide, this section lacks verification commands to confirm the bootstrap job completion and APIGateway CR status. Consider adding verification for consistency:

✏️ Suggested verification section
**Wait for the bootstrap job to complete:**

```bash
kubectl wait --for=condition=complete job/amp-gateway-bootstrap \
  -n ${DATA_PLANE_NS} --timeout=300s

Verify the AI Gateway is running:

# Check the APIGateway CR
kubectl get apigateway -n ${DATA_PLANE_NS}

# Check the bootstrap job
kubectl get jobs -n ${DATA_PLANE_NS}

Note: This extension is optional. The platform will function without it, but the AI Gateway will not be available.

</details>

<details>
<summary>🤖 Prompt for AI Agents</summary>

Verify each finding against the current code and only fix it if needed.

In @website/docs/getting-started/managed-cluster.mdx around lines 703 - 705, The
AI Gateway Extension section is missing verification steps; add a short
verification subsection that waits for and checks the bootstrap job and
APIGateway CR by using kubectl to wait for job/amp-gateway-bootstrap completion
(namespace variable DATA_PLANE_NS) and to list the apigateway CR and jobs in
that namespace so users can confirm bootstrap success and APIGateway status.


</details>

</blockquote></details>

</blockquote></details>

<details>
<summary>🤖 Prompt for all review comments with AI agents</summary>

Verify each finding against the current code and only fix it if needed.

Inline comments:
In @website/docs/getting-started/managed-cluster.mdx:

  • Around line 677-703: Add the missing THUNDER_NS configuration variable to the
    Phase 2 "Configuration Variables" section so the helm install command for the AI
    Gateway Extension (helm install amp-ai-gateway / token URL using ${THUNDER_NS})
    won't break; add an entry named THUNDER_NS with a short description like
    "Thunder Extension namespace" and the default value used elsewhere (amp-thunder)
    so the installation command and agentManager.idp.tokenUrl have a defined
    variable.
  • Around line 683-689: Update the default value for the
    agentManager.idp.tokenUrl entry in the configuration table: replace the
    incorrect service name "thunder-service" with the Helm-chart correct
    "amp-thunder-extension-service" so the default becomes the full URL for
    agentManager.idp.tokenUrl
    (http://amp-thunder-extension-service.amp-thunder.svc.cluster.local:8090/oauth2/token);
    ensure the change is applied to the agentManager.idp.tokenUrl row in the table
    so docs match the Helm chart default.

In @website/docs/getting-started/self-hosted-cluster.mdx:

  • Around line 652-656: The default value shown for agentManager.idp.tokenUrl is
    wrong: update the documented default for agentManager.idp.tokenUrl from
    http://thunder-service.amp-thunder.svc.cluster.local:8090/oauth2/token to match
    the Helm chart's actual default
    (http://amp-thunder-extension-service.amp-thunder.svc.cluster.local:8090/oauth2/token),
    and apply the same correction in the corresponding managed-cluster.mdx file;
    also verify the Helm chart value to ensure both docs and chart are consistent.
  • Around line 679-687: The verification command uses the wrong APIGateway CR
    name; update the kubectl check that currently references "ai-gateway" to use the
    configured gateway name (gateway.name) – e.g., "default-ai" (the default) or
    substitute a variable that reflects gateway.name – so the APIGateway CR check
    matches the value set in values.yaml and reliably verifies the correct resource.

Nitpick comments:
In @website/docs/getting-started/managed-cluster.mdx:

  • Around line 703-705: The AI Gateway Extension section is missing verification
    steps; add a short verification subsection that waits for and checks the
    bootstrap job and APIGateway CR by using kubectl to wait for
    job/amp-gateway-bootstrap completion (namespace variable DATA_PLANE_NS) and to
    list the apigateway CR and jobs in that namespace so users can confirm bootstrap
    success and APIGateway status.

</details>

---

<details>
<summary>ℹ️ Review info</summary>

<details>
<summary>⚙️ Run configuration</summary>

**Configuration used**: Path: .coderabbit.yaml

**Review profile**: CHILL

**Plan**: Pro

**Run ID**: `36d761fd-5746-4ab3-ad56-de34504de69b`

</details>

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 805a7d873ecbf02cdb2c114e1bdcdc92dbbde26b and 393bfda9aa45d37ad1ee7a243e30c1e728952819.

</details>

<details>
<summary>📒 Files selected for processing (2)</summary>

* `website/docs/getting-started/managed-cluster.mdx`
* `website/docs/getting-started/self-hosted-cluster.mdx`

</details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->

Comment on lines +677 to +703
### Step 10: Install AI Gateway Extension

The AI Gateway Extension registers the AI Gateway with the Agent Manager for managing LLM Providers.

**Important:** This step must be done **last** — it depends on the Agent Manager service being healthy and the Thunder Extension (IDP) being ready for token exchange.

**Set configuration variables:**

| Variable | Description | Default |
|----------|-------------|---------|
| `apiGateway.controlPlane.host` | Agent Manager service URL | `amp-api-gateway-manager.wso2-amp.svc.cluster.local:9243` |
| `agentManager.apiUrl` | Agent Manager API URL (reachable from bootstrap job) | `http://amp-api.wso2-amp.svc.cluster.local:9000/api/v1` |
| `agentManager.idp.tokenUrl` | Thunder Extension token endpoint | `http://thunder-service.amp-thunder.svc.cluster.local:8090/oauth2/token` |

**Installation:**

```bash
# Install AI Gateway Extension
helm install amp-ai-gateway \
oci://${HELM_CHART_REGISTRY}/wso2-amp-ai-gateway-extension \
--version 0.9.0 \
--namespace ${DATA_PLANE_NS} \
--set apiGateway.controlPlane.host="amp-api-gateway-manager.${AMP_NS}.svc.cluster.local:9243" \
--set agentManager.apiUrl="http://amp-api.${AMP_NS}.svc.cluster.local:9000/api/v1" \
--set agentManager.idp.tokenUrl="http://thunder-service.${THUNDER_NS}.svc.cluster.local:8090/oauth2/token" \
--timeout 1800s
```
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

THUNDER_NS variable used but not defined in Phase 2 Configuration Variables.

The installation command at line 701 uses ${THUNDER_NS}, but this variable is only defined in Step 4 (line 464), not in the Configuration Variables section at lines 372-387. Users starting from Phase 2 or copying commands selectively may encounter undefined variable errors.

Consider adding THUNDER_NS to the Configuration Variables section:

✏️ Proposed fix

Add to the Configuration Variables section (around line 386):

 export DATA_PLANE_NS="openchoreo-data-plane"
+export THUNDER_NS="amp-thunder"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@website/docs/getting-started/managed-cluster.mdx` around lines 677 - 703, Add
the missing THUNDER_NS configuration variable to the Phase 2 "Configuration
Variables" section so the helm install command for the AI Gateway Extension
(helm install amp-ai-gateway / token URL using ${THUNDER_NS}) won't break; add
an entry named THUNDER_NS with a short description like "Thunder Extension
namespace" and the default value used elsewhere (amp-thunder) so the
installation command and agentManager.idp.tokenUrl have a defined variable.

@menakaj menakaj merged commit 09ed80a into wso2:main Mar 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants