fix(nri-bundle): add alias for nr-ebpf-agent configuration routing #2011
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem Statement
The
nr-ebpf-agentchart is configured in nri-bundle with a mismatch between its condition name and chart name:newrelic-eapm-agent.enablednr-ebpf-agentThis forces users to maintain two separate configuration sections in their values file:
This is inconsistent with all other nri-bundle charts, which use a single configuration section.
Solution
Add
alias: newrelic-eapm-agentto the nr-ebpf-agent dependency definition in Chart.yaml.This allows Helm to route both the condition name and chart name to the same chart, enabling users to consolidate configuration under a single section:
Implementation
This approach:
pixie-operator-chartaliasTesting
Verified with
helm templatethat configuration undernewrelic-eapm-agent:is properly routed to the nr-ebpf-agent chart subchart.