-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Automatically detect OpenSearch version #3198
Automatically detect OpenSearch version #3198
Conversation
Signed-off-by: Pavol Loffay <[email protected]>
@albertteoh would you like to review? |
Signed-off-by: Pavol Loffay <[email protected]>
Signed-off-by: Pavol Loffay <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #3198 +/- ##
=======================================
Coverage 95.93% 95.93%
=======================================
Files 239 239
Lines 14661 14661
=======================================
Hits 14065 14065
Misses 519 519
Partials 77 77
Continue to review full report at Codecov.
|
Are the test failures expected? |
Signed-off-by: Pavol Loffay <[email protected]>
@@ -68,6 +69,12 @@ func (s *ESStorageIntegration) getVersion() (uint, error) { | |||
if err != nil { | |||
return 0, err | |||
} | |||
// OpenSearch is based on ES 7.x | |||
if strings.Contains(pingResult.TagLine, "OpenSearch") { |
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.
this is unfortunate we should refactor the test to use the pkg/es/config
no it needed a bit more love. It should be fixed now and it needs re-approval. |
Signed-off-by: Pavol Loffay <[email protected]>
still failed, I will have a look |
Signed-off-by: Pavol Loffay <[email protected]>
alright so the rollover script needed the "opensearch" logic as well. |
Updates #3044