log: cleanup es client options

Signed-off-by: huanggze <loganhuang@yunify.com>
This commit is contained in:
huanggze
2019-09-29 16:18:47 +08:00
parent d2b1bf4ba0
commit 11854e3320
3 changed files with 15 additions and 37 deletions

View File

@@ -91,12 +91,9 @@ func newTestConfig() *Config {
SecondaryEndpoint: "http://prometheus.kubesphere-monitoring-system.svc",
},
LoggingOptions: &esclient.ElasticSearchOptions{
Host: "http://elasticsearch-logging.kubesphere-logging-system.svc:9200",
LogstashFormat: false,
Index: "",
LogstashPrefix: "elk",
Match: "kube.*",
Version: "6",
Host: "http://elasticsearch-logging.kubesphere-logging-system.svc:9200",
IndexPrefix: "elk",
Version: "6",
},
KubeSphereOptions: &kubesphere.KubeSphereOptions{
APIServer: "http://ks-apiserver.kubesphere-system.svc",