-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
feat(appset): Provide additional parameter files to git generator - Fixes #20593 #20653
base: master
Are you sure you want to change the base?
Conversation
🔴 Preview Environment stopped on BunnyshellSee: Environment Details | Pipeline Logs Available commands (reply to this comment):
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #20653 +/- ##
==========================================
- Coverage 55.67% 55.63% -0.05%
==========================================
Files 339 339
Lines 56814 56903 +89
==========================================
+ Hits 31634 31660 +26
- Misses 22535 22590 +55
- Partials 2645 2653 +8 ☔ View full report in Codecov by Sentry. |
332728c
to
f8f5a0f
Compare
A hierarchy occurs in case of collision betweens the parameters, as follows: | ||
|
||
* Parameters are merged and overriden file by file, from top to bottom of the list provided | ||
* When a file provided is a glob pattern, files are sorted by path and overrides occur in the sorted order. |
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'm not 100% sure it's a good idea to provide globs here.
Forcing people to sort alphabetically can lead to error. I would rather enforce explicit path
What do you think @crenshaw-dev @ishitasequeira ?
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'm partial to leaving the glob supported as long as we document it properly people can use it and it's convenient.
30e93ef
to
c436323
Compare
c436323
to
3370b5a
Compare
3370b5a
to
9240b86
Compare
- path: "applicationset/examples/git-generator-files-discovery/cluster-config/**/config.json" | ||
extraParameterFiles: | ||
- "mypath/common-parameters/**/*.json | ||
- "myotherpath/specific-params/params-{{.cluster.name}}.yaml" |
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.
- path: "applicationset/examples/git-generator-files-discovery/cluster-config/**/config.json" | |
extraParameterFiles: | |
- "mypath/common-parameters/**/*.json | |
- "myotherpath/specific-params/params-{{.cluster.name}}.yaml" | |
- path: "applicationset/examples/git-generator-files-discovery/cluster-config/**/config.json" | |
- path: "mypath/common-parameters/**/*.json | |
prefix: extraParams | |
- path: "myotherpath/specific-params/params-{{.cluster.name}}.yaml" | |
prefix: extraExtraParams |
Thoughts?
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.
Nice ! It just complexifies a bit the whole thing as I was implementing a basic yaml merge as helm is doing with values files.
But we can just add the extra top level from the prefix and do the merge anyway, so it should work !
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.
Updated with that change
9240b86
to
753a59a
Compare
Same flakky test failure as master @crenshaw-dev , @todaywasawesome , @speedfl , @andrii-korotkov-verkada : Everything is ready now. Could you perform a final check ? |
Added one last comment. Otherwise LGTM 👍 |
753a59a
to
767d565
Compare
Hi @OpenGuidou , |
767d565
to
d7da6c1
Compare
Hi, I just rebased the branch and for me everything is ready and all comments were addressed. @argoproj/argocd-approvers could you give a final stamp ? |
Signed-off-by: OpenGuidou <[email protected]>
d7da6c1
to
9e6e5ae
Compare
Signed-off-by: OpenGuidou <[email protected]>
Hi @crenshaw-dev @argoproj/argocd-approvers, Is there any timeline for merging this PR? Thanks :) |
Fixes #20593
Checklist: