Skip to content

Fix: Add missing namespace prefix to middleware naming#124

Draft
kkhristenko51 wants to merge 16 commits into
mainfrom
feat/helm-traefik-support
Draft

Fix: Add missing namespace prefix to middleware naming#124
kkhristenko51 wants to merge 16 commits into
mainfrom
feat/helm-traefik-support

Conversation

@kkhristenko51

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

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.

Pull request overview

Updates the Helm chart’s Traefik Ingress middleware annotation to include the release namespace prefix (matching Traefik’s cross-namespace middleware reference format), and adjusts Helm unit tests + chart version accordingly.

Changes:

  • Prefix the generated rate-limit middleware reference with .Release.Namespace in the Ingress annotation.
  • Update ingress Helm unit tests to assert namespace-prefixed middleware references.
  • Bump chart version from 0.4.0 to 0.4.1.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/helm-charts/rosetta-mcp-server/templates/ingress.yaml Adds namespace prefix to the rate-limit middleware reference; modifies annotation rendering (currently introduces a rendering/duplication bug).
src/helm-charts/rosetta-mcp-server/tests/ingress_test.yaml Updates unit tests to validate namespace-prefixed middleware references.
src/helm-charts/rosetta-mcp-server/Chart.yaml Increments chart version to reflect the change.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 27 to +31
{{- if or $traefikMw $userAnnotations }}
annotations:
{{- if $traefikMw }}
traefik.ingress.kubernetes.io/router.middlewares: {{ $traefikMw }}
{{- end }}
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