Merge pull request #3212 from wanjunlei/es

add a es client for auditing, events, and logging
This commit is contained in:
KubeSphere CI Bot
2021-01-19 17:09:19 +08:00
committed by GitHub
44 changed files with 1890 additions and 2293 deletions

View File

@@ -125,7 +125,7 @@ func (s *ServerRunOptions) NewAPIServer(stopCh <-chan struct{}) (*apiserver.APIS
}
if s.LoggingOptions.Host != "" {
loggingClient, err := esclient.NewElasticsearch(s.LoggingOptions)
loggingClient, err := esclient.NewClient(s.LoggingOptions)
if err != nil {
return nil, fmt.Errorf("failed to connect to elasticsearch, please check elasticsearch status, error: %v", err)
}