-
Notifications
You must be signed in to change notification settings - Fork 546
[Dashboard] Implement elastic search client #3634
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
Conversation
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 and clean. Added some suggestions
|
||
tlsConfig := &tls.Config{ | ||
// Set to true to skip TLS verification if SSLVerificationMode is "none" | ||
InsecureSkipVerify: config.SSLVerificationMode == "none", |
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.
what are the options for the verification mode? perhaps better to define them as enums/consts
Or, if it is only true / false it can just be a bool
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.
@TomerShor actually I found only "none" it provazio and it's also a string in provazio, so that's why I kept it the same way
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.
These are the supported modes.
Need to see how they are translated to the ES client.
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.
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.
so does certificate
require any extra steps from our side?
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.
@TomerShor yes, but I don't see that we allow to set it from provazio
Adds elastic search client to a platform config. Also defines interface for future implementation that is needed for getting logs. Namely, method to return a list of replicas and a method to stream the logs from ES. `
Jira - https://iguazio.atlassian.net/browse/NUC-429