Skip to content

Commit

Permalink
Merge pull request openstack-k8s-operators#887 from stuggi/ephem_fqdn
Browse files Browse the repository at this point in the history
Ephemeral heat communication use svc fqdn
  • Loading branch information
openshift-merge-robot committed Aug 2, 2023
2 parents ad28654 + 8f0843a commit 69a1bff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controllers/openstackconfiggenerator_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func (r *OpenStackConfigGeneratorReconciler) Reconcile(ctx context.Context, req
}

templateParameters["TripleoDeployFiles"] = tripleoDeployFiles
templateParameters["HeatServiceName"] = "heat-" + instance.Name
templateParameters["HeatServiceName"] = "heat-" + instance.Name + "." + instance.Namespace + ".svc"

//
// openstackconfig-script CM
Expand Down
5 changes: 3 additions & 2 deletions controllers/openstackephemeralheat_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,9 @@ func (r *OpenStackEphemeralHeatReconciler) generateServiceConfigMaps(
cmLabels := common.GetLabels(instance, openstackephemeralheat.AppLabel, map[string]string{})
envVars := make(map[string]common.EnvSetter)
templateParameters := make(map[string]interface{})
templateParameters["MariaDBHost"] = "mariadb-" + instance.Name
templateParameters["RabbitMQHost"] = "rabbitmq-" + instance.Name
svcDomain := "." + instance.Namespace + ".svc"
templateParameters["MariaDBHost"] = "mariadb-" + instance.Name + svcDomain
templateParameters["RabbitMQHost"] = "rabbitmq-" + instance.Name + svcDomain
templateParameters["MariaDBPassword"] = string(passwordSecret.Data["password"])

// ConfigMaps for all services (MariaDB/Rabbit/Heat)
Expand Down

0 comments on commit 69a1bff

Please sign in to comment.