-
Couldn't load subscription status.
- Fork 285
feat: add a YAML Merger PromotionStep #4634
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for docs-kargo-io ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
89bbf3d to
f13147f
Compare
bde39d7 to
e3bed04
Compare
|
Any way to get someone trigger the CI build ? |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4634 +/- ##
==========================================
+ Coverage 55.44% 55.47% +0.02%
==========================================
Files 404 405 +1
Lines 36426 36539 +113
==========================================
+ Hits 20198 20270 +72
- Misses 15265 15298 +33
- Partials 963 971 +8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
3268947 to
e36bfe8
Compare
|
thanks for the review @fuskovic. Everything should be resolved + rebased now. |
|
Anyone to review this ? |
|
@prune998 I know this isn't what anyone wants to hear, but our priorities are elsewhere right now and there may be a bit of a wait for a thorough review. Some discussion may also be in order. I see this is meant to address #4766, but no maintainer triaged that feature request or moved it out of proposal status. It's a gamble putting the effort into a feature without those conversations happening first. In all probability, this is a worthwhile feature and it will be reviewed eventually and probably merged, but some patience may be required. If it makes you feel any better, I have PRs open to some other projects that are old enough to be starting kindergarten. Our backlog isn't that bad, thankfully. |
|
Small addendum... there are some notoriously well-known gotchas when merging YAML, so this isn't a review I'd rush through and that contributes to the above. |
|
Thanks for the comment @krancour . I understand you're busy with your customers features. What you could do, would be
This way, your team will not be much impacted, the features is released, and you have a "feature maintainer". This is just a proposition and you can refuse it. I'll wait, or keep using my forked version... but it will be a miss :) Side note on YAML merging: yeah, there's a ton of gotchas... this is why I used a "well known" library to do it and not try to re-implement it myself. The library I used is also opinionated. But it is intended for K8s yaml style. I also tested others, with varying results... Anyway, they all have the same limitations (biggest one being no merge of lists, latest list takes precedence), like Helm does, so people knowing Helm will not be disturbed. |
Signed-off-by: Prune <prune@lecentre.net>
Signed-off-by: Prune <prune@lecentre.net>
Signed-off-by: Prune <prune@lecentre.net>
Signed-off-by: Prune <prune@lecentre.net>
Signed-off-by: Prune <prune@lecentre.net>
Signed-off-by: Prune <prune@lecentre.net>
Signed-off-by: Prune <prune@lecentre.net>
Signed-off-by: Prune <prune@lecentre.net>
Signed-off-by: Prune <prune@lecentre.net>
Signed-off-by: Prune <prune@lecentre.net>
Signed-off-by: Prune <prune@lecentre.net>
Signed-off-by: Prune <prune@lecentre.net>
Signed-off-by: Prune <prune@lecentre.net>
Signed-off-by: Prune <prune@lecentre.net>
Signed-off-by: Prune <prune@lecentre.net>
e2534f5 to
be85e30
Compare
|
All requested modifications applied. |
|
thanks @prune998 I'll do a final cleanup before approving this PR |
Signed-off-by: Faeka Ansari <faeka6@gmail.com>
596e77a to
d87a0c4
Compare
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.
I have reviewed this PR and it works correctly for both cases - with and without ignoreMissingFiles. in its current implementation, it will error when all files in inFiles are missing and there's nothing to merge.
Deferring to @krancour for the final merge.
|
all set !! Many thanks @fykaa. Hope to see that merged soon ! Thanks all for you help |
docs/docs/50-user-guide/60-reference-docs/30-promotion-steps/yaml-merge.md
Outdated
Show resolved
Hide resolved
docs/docs/50-user-guide/60-reference-docs/30-promotion-steps/yaml-merge.md
Outdated
Show resolved
Hide resolved
Signed-off-by: Faeka Ansari <faeka6@gmail.com>
|
are we good to merge then ? |
This PR add a new Promotion
Stepthat caan merge multiple YAML files into a single file.This is useful in the scenario where, for example, multiple promotions (ex: one per cluster) merges content in the same repo/branch.
Then Helm will pick up the values from multiple locations, but updating
globalvalues could impact many clusters at the same time.With this step, we are able to pre-merge
globalvalues with more specific values and only commit one singlevalues.yamlfile for each specific cluster. No moreglobals.