You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(helm): add openai.secretRef support to querydoc sub-chart
Mirrors the existing grafana-mcp pattern: when `openai.secretRef` is
set, the chart skips rendering its own Secret and points the Deployment's
`envFrom.secretRef.name` at the user-supplied Secret instead.
Precedence rules:
- `secretRef` set → no chart-owned Secret; Deployment references the
external Secret by name
- `apiKey` set, no `secretRef` → chart creates the Secret (existing
behavior unchanged)
- Neither set → no Secret, no secretRef in envFrom (existing behavior)
- Both set → `secretRef` wins; no chart-owned Secret
This allows operators to manage the OpenAI API key via External Secrets,
sealed-secrets, or manual `kubectl create secret` without workarounds
such as placeholder values and ArgoCD ignoreDifferences blocks.
Added secret_test.yaml covering the four-row precedence table, and
extended deployment_test.yaml with envFrom/checksum-annotation cases for
each combination.
Signed-off-by: TOMOFUMI-KONDO <ugax2kontomo0314@gmail.com>
0 commit comments