From 0b75e646daf08edcb9182f5b039f8adcc4682c6d Mon Sep 17 00:00:00 2001 From: Martin Schuppert Date: Thu, 3 Aug 2023 08:30:21 +0200 Subject: [PATCH] Use svc fqdn for ctlplane export --- controllers/openstackconfiggenerator_controller.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/controllers/openstackconfiggenerator_controller.go b/controllers/openstackconfiggenerator_controller.go index ba03a8bf..a91bf02f 100644 --- a/controllers/openstackconfiggenerator_controller.go +++ b/controllers/openstackconfiggenerator_controller.go @@ -298,8 +298,9 @@ func (r *OpenStackConfigGeneratorReconciler) Reconcile(ctx context.Context, req } } + svcDomain := "." + instance.Namespace + ".svc" templateParameters["TripleoDeployFiles"] = tripleoDeployFiles - templateParameters["HeatServiceName"] = "heat-" + instance.Name + "." + instance.Namespace + ".svc" + templateParameters["HeatServiceName"] = "heat-" + instance.Name + svcDomain // // openstackconfig-script CM @@ -511,7 +512,7 @@ func (r *OpenStackConfigGeneratorReconciler) Reconcile(ctx context.Context, req return ctrl.Result{RequeueAfter: time.Second * 10}, nil } // obtain the cltplaneExports from Heat - exports, err = openstackconfiggenerator.CtlplaneExports("heat-"+instance.Name, r.Log) + exports, err = openstackconfiggenerator.CtlplaneExports("heat-"+instance.Name+svcDomain, r.Log) if err != nil && !k8s_errors.IsNotFound(err) { cond.Message = err.Error() cond.Reason = shared.ConfigGeneratorCondReasonExportFailed