From af5155312e22b8b6fd9bdb21b17cddd859a8fbb2 Mon Sep 17 00:00:00 2001 From: hockic Date: Sat, 21 Oct 2023 12:18:02 +0200 Subject: [PATCH] taking elasticsearch namespace into consideration Signed-off-by: hockic --- Makefile | 2 +- elasticgo/client.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 815c432..44abe21 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ # To re-generate a bundle for another specific version without changing the standard setup, you can: # - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2) # - use environment variables to overwrite this value (e.g export VERSION=0.0.2) -VERSION ?= v0.4.0 +VERSION ?= v0.4.1 # CHANNELS define the bundle channels used in the bundle. # Add a new line here if you would like to change its default config. (E.g CHANNELS = "candidate,fast,stable") diff --git a/elasticgo/client.go b/elasticgo/client.go index 521140d..3beaadd 100644 --- a/elasticgo/client.go +++ b/elasticgo/client.go @@ -53,7 +53,7 @@ func generateElasticClient(cr *loggingv1beta1.Elasticsearch) (esapi.Transport, e } else { urlScheme = "http" } - elasticURL := fmt.Sprintf("%s://%s-master:9200", urlScheme, cr.ObjectMeta.Name) + elasticURL := fmt.Sprintf("%s://%s-master.%s:9200", urlScheme, cr.ObjectMeta.Name, cr.ObjectMeta.Namespace) cfg := elasticsearch.Config{ Addresses: []string{ elasticURL,