Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions internal/controller/cloudkitty_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,7 @@ func (r *CloudKittyReconciler) generateServiceConfigs(
templateParameters["ServicePassword"] = string(ospSecret.Data[instance.Spec.PasswordSelectors.CloudKittyService])
templateParameters["KeystoneInternalURL"] = keystoneInternalURL
templateParameters["KeystonePublicURL"] = keystonePublicURL
templateParameters["Region"] = keystoneAPI.GetRegion()
templateParameters["TransportURL"] = string(transportURLSecret.Data["transport_url"])
templateParameters["PrometheusHost"] = instance.Status.PrometheusHost
templateParameters["PrometheusPort"] = instance.Status.PrometheusPort
Expand Down
7 changes: 6 additions & 1 deletion templates/cloudkitty/config/cloudkitty.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ transport_url = {{ .TransportURL }}
debug = True
project_domain_name = default
user_domain_name = default
region_name = RegionOne
{{ if (index . "Region") -}}
region_name = {{ .Region }}
{{ end -}}
tenant_name = service
project_name = service
password = {{ .ServicePassword }}
Expand Down Expand Up @@ -78,6 +80,9 @@ username = {{ .ServiceUser }}
auth_url = {{ .KeystoneInternalURL }}
interface = internal
auth_type = password
{{ if (index . "Region") -}}
region_name = {{ .Region }}
{{ end -}}
{{- if .TLS }}
cafile = {{ .CAFile }}
{{- end }}
Expand Down