-
Notifications
You must be signed in to change notification settings - Fork 2.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
[WIP] Add ES Auto Index Cleaner #6425
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Alok Kumar Singh <[email protected]>
Signed-off-by: Alok Kumar Singh <[email protected]>
Signed-off-by: Alok Kumar Singh <[email protected]>
8feef9c
to
6370ca0
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6425 +/- ##
===========================================
- Coverage 96.20% 34.64% -61.57%
===========================================
Files 356 192 -164
Lines 20416 11643 -8773
===========================================
- Hits 19642 4034 -15608
- Misses 585 7301 +6716
- Partials 189 308 +119
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
i.logger.Info("Indices before this date will be deleted", zap.String("date", deleteIndicesBefore.Format(time.RFC3339))) | ||
|
||
indices = filter.ByDate(indices, deleteIndicesBefore) | ||
|
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.
Will add check to not delete indices with write alias.
@@ -41,6 +44,32 @@ type IndicesClient struct { | |||
MasterTimeoutSeconds int | |||
} | |||
|
|||
// Create the indices only client using config.Configuration | |||
func CreateIndicesClient(c *config.Configuration, logger *zap.Logger) (*IndicesClient, error) { |
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 don't follow why we need this function. The pattern in es.Factory is to use config.NewClient, which takes configuration.
Which problem is this PR solving?
Description of the changes
How was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:npm run lint
andnpm run test