-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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.10% 55.13% +0.03%
==========================================
Files 324 324
Lines 55239 55319 +80
==========================================
+ Hits 30439 30500 +61
- Misses 22180 22198 +18
- Partials 2620 2621 +1 ☔ View full report in Codecov by Sentry. |
0577c89
to
332728c
Compare
Signed-off-by: OpenGuidou <[email protected]>
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 ?
return nil, err | ||
} | ||
|
||
files, err := g.repos.GetFiles(context.TODO(), git.RepoURL, git.Revision, templatedPath, noRevisionCache, verifyCommit) |
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.
If we enforce explicit file, we may need to add a check before this call
Fixes #20593
Checklist: