-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[refactor] Allow storage cleaner to be overridden via environment variable #7114
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
[refactor] Allow storage cleaner to be overridden via environment variable #7114
Conversation
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7114 +/- ##
==========================================
- Coverage 96.11% 96.09% -0.03%
==========================================
Files 358 358
Lines 21585 21585
==========================================
- Hits 20747 20742 -5
- Misses 631 635 +4
- Partials 207 208 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@@ -215,6 +215,9 @@ func createStorageCleanerConfig(t *testing.T, configFile string, storage string) | |||
|
|||
func purge(t *testing.T) { | |||
addr := fmt.Sprintf("http://0.0.0.0:%s%s", storagecleaner.Port, storagecleaner.URL) | |||
if purgerAddr, ok := os.LookupEnv("PURGER_ADDRESS"); ok { |
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 think it's better to call this ENDPOINT, since it's not just host:port address.
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Which problem is this PR solving?
Description of the changes
PURGER_ENDPOINT
environment variablesHow was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:npm run lint
andnpm run test