fix(helm): honor release namespace instead of hardcoded ns-aiq#309
fix(helm): honor release namespace instead of hardcoded ns-aiq#309e-minguez wants to merge 1 commit into
Conversation
The aiq.namespace helper rendered ns-<appname> (e.g. ns-aiq) for every resource, ignoring the install namespace. This broke helm install -n and GitOps operators (ArgoCD, Fleet) that don't pre-create ns-aiq, failing with 'namespaces "ns-aiq" not found'. Default the helper to .Release.Namespace and add an optional namespace.name override to pin a specific namespace. Align namespace.yaml to use the same helper. Bump chart versions (aiq 0.0.4->0.0.5, aiq2-web 2.0.0->2.0.1) and refresh the vendored dependency package. Fixes NVIDIA-AI-Blueprints#290 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: e-minguez <e.minguez@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Enterprise Run ID: 📒 Files selected for processing (7)
📜 Recent review details🧰 Additional context used📓 Path-based instructions (2)**⚙️ CodeRabbit configuration file
Files:
{deploy/**,configs/**}⚙️ CodeRabbit configuration file
Files:
🔇 Additional comments (5)
WalkthroughUpdates the ChangesNamespace resolution fix and version bumps
Estimated code review effort: 2 (Simple) | ~10 minutes Related issues: Fixes Sequence Diagram(s)sequenceDiagram
participant Helm as Helm CLI
participant NamespaceTpl as namespace.yaml
participant Helper as aiq.namespace helper
participant Values as values.yaml
Helm->>NamespaceTpl: render Namespace resource
NamespaceTpl->>Helper: include "aiq.namespace" .
Helper->>Values: check namespace.name
alt namespace.name set
Helper-->>NamespaceTpl: return namespace.name
else namespace.name empty
Helper-->>NamespaceTpl: return .Release.Namespace
end
NamespaceTpl-->>Helm: rendered metadata.name
Suggested reviewers: aiq maintainers familiar with Helm chart deployment targets and GitOps operator compatibility. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Overview
The aiq.namespace helper rendered ns- (e.g. ns-aiq) for every resource, ignoring the install namespace. This broke helm install -n and GitOps operators (ArgoCD, Fleet) that don't pre-create ns-aiq, failing with 'namespaces "ns-aiq" not found'.
Default the helper to .Release.Namespace and add an optional namespace.name override to pin a specific namespace. Align namespace.yaml to use the same helper. Bump chart versions (aiq 0.0.4->0.0.5, aiq2-web 2.0.0->2.0.1) and refresh the vendored dependency package.
Validation
git commit -sor an equivalent sign-off.Where should reviewers start?
Related Issues
Fixes #290
Summary by CodeRabbit
New Features
Bug Fixes