Skip to content

Feat: Use the 0.5 version of MCP Gateway - #732

Merged
esnible merged 7 commits into
rossoctl:mainfrom
esnible:upgrade-mcp-to-0.5
Feb 25, 2026
Merged

esnible merged 7 commits into
rossoctl:mainfrom
esnible:upgrade-mcp-to-0.5

Conversation

@esnible

@esnible esnible commented Feb 20, 2026

Copy link
Copy Markdown
Member

Resolves #616

@pdettori

Copy link
Copy Markdown
Member

Looks like some CI files need also to be updated as they are checking for the presence of the old CRD for mcpserver

Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "mcpservers.mcp.kagenti.com" not found
ERROR: CRD mcpservers.mcp.kagenti.com not established

@esnible
esnible marked this pull request as ready for review February 23, 2026 18:56
@pdettori

Copy link
Copy Markdown
Member

Bug: gateway-system namespace not found during mcp-gateway install

The installer fails at the Install/upgrade mcp-gateway chart task with:

Error: UPGRADE FAILED: failed to create resource: namespaces "gateway-system" not found

Root Cause

The gateway-system namespace is created by the kagenti chart (via charts/kagenti/templates/mcp-gateway-namespaces.yaml), but the mcp-gateway chart is installed before the kagenti chart in the Ansible playbook:

  1. Line 1416 — mcp-gateway chart installs (needs gateway-system)
  2. Line 1523 — kagenti chart installs (creates gateway-system)

The switch from the kagenti-packaged chart to the upstream Kuadrant chart (ghcr.io/kuadrant/charts/mcp-gateway:0.5.0) is the trigger — the upstream v0.5.0 chart includes resources that reference the gateway-system namespace. The --create-namespace flag only creates the release namespace (mcp-system), not gateway-system.

Suggested Fix

Add a task before the mcp-gateway install (before line 1416 in main.yml) to pre-create the namespace:

- name: Create gateway-system namespace for mcp-gateway
  kubernetes.core.k8s:
    state: present
    kind: Namespace
    name: gateway-system
  when: charts.mcpGateway.enabled | default(false)

This decouples namespace creation from the kagenti chart without changing install order (which could break CRD dependencies).

@esnible

esnible commented Feb 24, 2026 •

Copy link
Copy Markdown
Member Author

@pdettori I missed this in testing because the mcp-gateway chart eventually installs correctly; it needs to retry.

I tried your suggested fix, which fails with

Error: Unable to continue with install: Namespace "gateway-system" in namespace "" exists and cannot be imported into the current release: 
invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": 
must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": 
must be set to "kagenti"; annotation validation error: missing key "meta.helm.sh/release-namespace": 
must be set to "kagenti-system"

I tried re-ordering to install the mcp-gateway chart after the kagenti chart. Tomorrow I will look into a few other approaches and if none work I will have the mcp-gateway chart create its own dependencies.

@pdettori

Copy link
Copy Markdown
Member

I hit the same Helm ownership error. The fix is to pre-create the namespace with Helm ownership labels/annotations so the kagenti chart can adopt it:

- name: Create gateway-system namespace for mcp-gateway
  kubernetes.core.k8s:
    state: present
    definition:
      apiVersion: v1
      kind: Namespace
      metadata:
        name: gateway-system
        labels:
          app.kubernetes.io/managed-by: Helm
        annotations:
          meta.helm.sh/release-name: kagenti
          meta.helm.sh/release-namespace: kagenti-system
  when: charts.mcpGateway.enabled | default(false)

This tells Helm the namespace belongs to the kagenti release, so when the kagenti chart runs later it adopts it cleanly instead of rejecting it. Tested locally and both the mcp-gateway and kagenti chart installs succeed.

@esnible

esnible commented Feb 24, 2026

Copy link
Copy Markdown
Member Author

@pdettori Please re-review.

@pdettori

Copy link
Copy Markdown
Member

/run-e2e

@github-actions github-actions Bot added the safe-to-test Maintainer reviewed - safe to run E2E tests label Feb 24, 2026
@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @pdettori
Commit: 41affc1340d1573d70c2fe8e3b9094b99fe9ed12
Workflow Run: View logs

Tests are running on OpenShift 4.20.11. This typically takes 30-45 minutes.


To re-run tests after new commits, comment /run-e2e again.

@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Passed

Commit: 41affc1340d1573d70c2fe8e3b9094b99fe9ed12
Result: All tests passed
Workflow Run: View logs

The safe-to-test label indicates this commit has been approved for E2E testing.


If you push new commits, the label will be removed and you'll need to comment /run-e2e again.

"mcpvirtualservers.mcp.kagenti.com"
"mcpserverregistrations.mcp.kagenti.com"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: this seems to have gotten doubled?

@pdettori pdettori left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/LGTM - I suggest addressing @evaline-ju 's comment before merging

@github-actions github-actions Bot removed the safe-to-test Maintainer reviewed - safe to run E2E tests label Feb 25, 2026
@github-actions

Copy link
Copy Markdown

New Commits Detected

The safe-to-test label has been automatically removed because new commits were pushed.

New HEAD: 8548d3f

For maintainers: Please review the new changes and comment /run-e2e to trigger E2E tests.

Security checklist

Before running E2E tests, verify the PR does NOT contain:

  • Changes to .github/workflows/ that bypass security
  • Changes to .github/scripts/ that could exfiltrate secrets
  • curl, wget, or nc commands to external URLs in scripts
  • Base64 encoding of environment variables
  • Printing secrets to logs (echo $SECRET)
  • Suspicious package installations

This is an automated security measure to prevent TOCTOU attacks

@esnible
esnible marked this pull request as draft February 25, 2026 15:19
@esnible

esnible commented Feb 25, 2026

Copy link
Copy Markdown
Member Author

Holding this issue while troubleshooting rossoctl/examples#135

@esnible
esnible marked this pull request as ready for review February 25, 2026 16:24
@esnible
esnible merged commit d050a49 into rossoctl:main Feb 25, 2026
16 checks passed
@esnible
esnible deleted the upgrade-mcp-to-0.5 branch February 25, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

feature: Upgrade MCP Gateway to Developer Preview - release 0.5.0

3 participants