Honor AI Gateway GitLab URL and JWT key secret values

What does this MR do?

templates/_ai_gateway.tpl overrides the ai-gateway subchart's helpers, and the overrides ignored the subchart's values:

  • ai-gateway.gitlab.url / apiUrl were replaced by the URL from global.hosts.
  • The four JWT key-secret helpers (aigwSigningKey, aigwValidationKey, duoWorkflowSigningKey, duoWorkflowValidationKey) always returned the release-derived secret name and a fixed key.

The helpers now use these values when set and fall back to the previous defaults. A custom secret renames the generated Secret, as elsewhere in the chart. Default values render unchanged. Releases that already set these values will now have them applied.

  • Specs: new ai_gateway_spec.rb, plus an AI Gateway entry in the shared_secrets_spec.rb value matrix. image_spec.rb now also checks the AI Gateway image, for the default registry only: the subchart supports neither image.registry nor global.image.registry yet.
  • Docs: new sections in doc/charts/ai-gateway/_index.md for the GitLab URL and for your own JWT keys.

Closes #6744 (closed)

Author checklist

For general guidance, please follow our Contributing guide.

Required

For anything in this list which will not be completed, please provide a reason in the MR discussion.

  • Merge Request Title and Description are up to date, accurate, and descriptive.
  • MR targeting the appropriate branch.
  • MR has a green pipeline.
  • Documentation created/updated.
  • Tests added/updated.
  • Have you validated that your change works end-to-end on a real cluster deployment?
    • Not yet. Verified with helm template and the specs above.
  • Equivalent MR/issue for omnibus-gitlab opened.
    • Not applicable: chart-only change.
  • When ready for review, MR is marked as ready (not a draft) and assigned to a reviewer.

Reviewers checklist

🤖 Generated with Claude Code

Edited by Nailia Iskhakova

Merge request reports

Loading
Loading