-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add deep-merge of values, and allow empty values file #812
Add deep-merge of values, and allow empty values file #812
Conversation
Hello, appreciate the contribution! I'd like there to be tests reproducing the problem you've run into here. Can you tell me more about why you were unable to run the tests? |
@allenporter Seems like the issue was related to missing system dependency kyverno. |
…. Update golden snapshots.
@allenporter I have updated the values tests to include an empty values and a patch values config. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #812 +/- ##
==========================================
+ Coverage 93.50% 93.53% +0.02%
==========================================
Files 20 20
Lines 2294 2304 +10
==========================================
+ Hits 2145 2155 +10
Misses 149 149 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, though I have some minor nits. Also there are lint errors so you'll want to check those. Running run the pre-commit before committing can help catch those.
If the yaml lint doesn't like this and it can't be tested that way easily, you can also use test_values.py
since it has some existing tests for this function.
Co-authored-by: Allen Porter <allen.porter@gmail.com>
@allenporter Thanks for the pre-commit tip! Might be a good idea to update the CONTRIBUTING.md with the system dependency kyverno and the usage of pre-commit? I have processed the feedback in the PR. |
As for the pre-commit, yes, good idea, feel free to send a change to update it.
Let's stick with just the files in this PR. |
Thanks for the contribution @Lingkar 💯 |
I've released this as 6.1.0 and it's causing some HelmReleases to break https://github.com/onedr0p/home-ops/actions/runs/12473136322/job/34813129881 |
It appears like the original |
Allow empty YAML values files.
Perform a deep merge instead of shallow, for better helm values patching.
(I was unable to locally run the tests, would like to check via the pipeline)