From a6f673308d5a38cfa34ef2524151e2048d28394c Mon Sep 17 00:00:00 2001 From: pritamdas99 Date: Fri, 20 Sep 2024 14:37:02 +0600 Subject: [PATCH] Update podurl --- solr/kubedb_client_builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/kubedb_client_builder.go b/solr/kubedb_client_builder.go index ff9411ba..251d06ad 100644 --- a/solr/kubedb_client_builder.go +++ b/solr/kubedb_client_builder.go @@ -79,7 +79,7 @@ func (o *KubeDBClientBuilder) WithContext(ctx context.Context) *KubeDBClientBuil func (o *KubeDBClientBuilder) GetSolrClient() (*Client, error) { if o.podName != "" { - o.url = o.GetHostPath(o.db) + o.url = fmt.Sprintf("%v://%s.%s.svc.cluster.local:%d", o.db.GetConnectionScheme(), o.podName, o.db.GetNamespace(), kubedb.SolrRestPort) } if o.url == "" { o.url = o.GetHostPath(o.db)