newrelic-infra-operator: Add Comprehensive Global Value Inheritance Test Coverage #613
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.
Overview
This PR adds comprehensive test coverage validating global value inheritance for the newrelic-infra-operator chart. All applicable global values have dedicated test cases that directly validate propagation and override precedence. No template changes were required - the existing implementation correctly honors global values. The focus is on explicit test validation.
Changes
Added Comprehensive Global Value Inheritance Test Suite
tests/global-inheritance_test.yaml(increased from 23)Test Results
Coverage:
Global Values Coverage
All 27 global values from the nri-bundle global contract assessed:
Legend:
Yes- Chart includes explicit helm-unittest test coverageNo- Value not applicable to this chart typeTesting Approach: This chart validates ALL applicable global values through explicit helm-unittest tests, ensuring each value propagates correctly and respects override precedence. Independent validation is industry-standard for infrastructure-as-code: it provides confidence that configuration changes work as expected.
Files Modified
Tests (1 file)
charts/newrelic-infra-operator/tests/global-inheritance_test.yaml- Added 34 comprehensive helm-unittest test cases validating global value inheritance with complete Local > Global > Default precedenceVersion (1 file)
charts/newrelic-infra-operator/Chart.yaml- Bumped version 2.18.1 → 2.18.2Documentation (1 file)
CHANGELOG.md- Added test suite entry under UnreleasedNo Breaking Changes
All changes maintain backward compatibility:
Build Status
Changelog Entry
Verification Steps
To verify this PR:
helm unittest ./charts/newrelic-infra-operator/(should show 46/46 passing)helm lint ./charts/newrelic-infra-operator/(should pass)--set global.nodeSelector.monitoring=trueand verify it appears in deploymentRelated Issues