Skip to content

NO-ISSUE: fix(deploy): guard NodeFeatureRule with nfd.enabled condition#92

Merged
hhk7734 merged 1 commit intomainfrom
NO-ISSUE-fix-nfr-conditional
Mar 19, 2026
Merged

NO-ISSUE: fix(deploy): guard NodeFeatureRule with nfd.enabled condition#92
hhk7734 merged 1 commit intomainfrom
NO-ISSUE-fix-nfr-conditional

Conversation

@nulledge
Copy link
Copy Markdown
Contributor

@nulledge nulledge commented Mar 19, 2026

Summary

  • nfd.enabled: false로 설정해도 NodeFeatureRule 리소스가 렌더링되는 버그 수정
  • Chart.yamlcondition: nfd.enabled는 NFD 서브차트 배포만 제어하므로, 부모 차트 템플릿에 별도 조건문 추가

References

Test plan

  • helm template test deploy/helm/moai-inference-framework --set nfd.enabled=false | grep -c NodeFeatureRule → 0
  • helm template test deploy/helm/moai-inference-framework | grep -c NodeFeatureRule → 1

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 19, 2026 02:57
@nulledge nulledge requested a review from a team as a code owner March 19, 2026 02:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a Helm rendering bug where the NodeFeatureRule resource was still rendered even when nfd.enabled: false, by adding an explicit template-level guard in the parent chart (since the dependency condition only controls the NFD subchart deployment).

Changes:

  • Wrap templates/nfd/moai-accelerator.yaml with {{- if .Values.nfd.enabled }} / {{- end }} so the NodeFeatureRule is not rendered when NFD is disabled.

@hhk7734 hhk7734 merged commit 7b3b7c0 into main Mar 19, 2026
9 checks passed
@hhk7734 hhk7734 deleted the NO-ISSUE-fix-nfr-conditional branch March 19, 2026 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants