Loading
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/apiUrlwere replaced by the URL fromglobal.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 theshared_secrets_spec.rbvalue matrix.image_spec.rbnow also checks the AI Gateway image, for the default registry only: the subchart supports neitherimage.registrynorglobal.image.registryyet. - Docs: new sections in
doc/charts/ai-gateway/_index.mdfor the GitLab URL and for your own JWT keys.
Related issues
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 templateand the specs above.
- Not yet. Verified with
- 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
- As soon as you begin reviewing, select Start a review on your first comment so the MR shows Reviewer started review.
- MR has a green pipeline on https://gitlab.com/gitlab-org/charts/gitlab.
- Consider downstream impact to the Operator, as per evaluating impact from changes to GitLab chart.
Edited by Nailia Iskhakova