Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v1.3.x] Use svc fqdn for ctlplane export #890

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions controllers/openstackconfiggenerator_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down