Skip to content

fix(bundler): skip components with overrides.enabled: false#382

Merged
mchmarny merged 2 commits intoNVIDIA:mainfrom
xdu31:fix/bundle-deploy
Mar 12, 2026
Merged

fix(bundler): skip components with overrides.enabled: false#382
mchmarny merged 2 commits intoNVIDIA:mainfrom
xdu31:fix/bundle-deploy

Conversation

@xdu31
Copy link
Copy Markdown
Contributor

@xdu31 xdu31 commented Mar 12, 2026

Summary

  • Components with overrides.enabled: false in the recipe (e.g., aws-ebs-csi-driver in EKS overlay) were still included in deploy.sh, causing hangs during deployment
  • Add ComponentRef.IsEnabled() method and filter disabled components early in bundler.Make() so neither Helm nor ArgoCD deployers generate output for them

Test plan

  • go test -race ./pkg/recipe/... -run TestComponentRefIsEnabled
  • go test -race ./pkg/bundler/... -run TestMake_DisabledComponentsFiltered
  • go run ./cmd/aicr bundle --recipe <eks-recipe> --output bundle — verify disabled component has no directory and no deploy.sh entry

mchmarny

This comment was marked as resolved.

@xdu31 xdu31 force-pushed the fix/bundle-deploy branch from b79f47f to 2374594 Compare March 12, 2026 20:12
@mchmarny mchmarny enabled auto-merge (squash) March 12, 2026 20:15
@mchmarny mchmarny added this to the M2 - KubeCon EU milestone Mar 12, 2026
@mchmarny mchmarny merged commit a5d501b into NVIDIA:main Mar 12, 2026
16 of 17 checks passed
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Mar 13, 2026
…et disable

PR NVIDIA#382 disabled aws-ebs-csi-driver by default in EKS recipes assuming
it was pre-installed as an EKS addon. However, EKS does not include it
by default — only coredns, kube-proxy, and vpc-cni are included. This
caused Prometheus PVC provisioning to fail on clusters without the addon.

Changes:
- Re-enable aws-ebs-csi-driver in the EKS overlay (remove overrides.enabled: false)
- Add getSetEnabledOverride() so --set awsebscsidriver:enabled=false
  works at bundle time for clusters that have it as an EKS addon
- --set overrides take precedence over recipe-level overrides

Refs: NVIDIA#382

Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
yuanchen8911 added a commit to yuanchen8911/aicr that referenced this pull request Mar 13, 2026
…et disable

PR NVIDIA#382 disabled aws-ebs-csi-driver by default in EKS recipes assuming
it was pre-installed as an EKS addon. However, EKS does not include it
by default — only coredns, kube-proxy, and vpc-cni are included. This
caused Prometheus PVC provisioning to fail on clusters without the addon.

Changes:
- Re-enable aws-ebs-csi-driver in the EKS overlay (remove overrides.enabled: false)
- Add getSetEnabledOverride() so --set awsebscsidriver:enabled=false
  works at bundle time for clusters that have it as an EKS addon
- --set overrides take precedence over recipe-level overrides

Refs: NVIDIA#382

Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants