From 40a630a65d5e1022f941ae0ebd3e81183a5cbde4 Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Tue, 21 May 2024 02:19:10 +0200 Subject: [PATCH] Unhardcode cluster.local domain Signed-off-by: Andrei Kvapil --- internal/utilities/tenant_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/utilities/tenant_client.go b/internal/utilities/tenant_client.go index 724c9f31..a0c76a75 100644 --- a/internal/utilities/tenant_client.go +++ b/internal/utilities/tenant_client.go @@ -60,7 +60,7 @@ func GetRESTClientConfig(ctx context.Context, client client.Client, tenantContro } config := &restclient.Config{ - Host: fmt.Sprintf("https://%s.%s.svc.cluster.local:%d", tenantControlPlane.GetName(), tenantControlPlane.GetNamespace(), tenantControlPlane.Spec.NetworkProfile.Port), + Host: fmt.Sprintf("https://%s.%s.svc:%d", tenantControlPlane.GetName(), tenantControlPlane.GetNamespace(), tenantControlPlane.Spec.NetworkProfile.Port), TLSClientConfig: restclient.TLSClientConfig{ CAData: kubeconfig.Clusters[0].Cluster.CertificateAuthorityData, CertData: kubeconfig.AuthInfos[0].AuthInfo.ClientCertificateData,