Merge "[Designate] Bring consistency to oslo_db endpoints"

This commit is contained in:
Zuul 2020-03-29 00:17:49 +00:00 committed by Gerrit Code Review
commit 32a43ffda1
3 changed files with 4 additions and 4 deletions

View File

@ -56,8 +56,8 @@
{{- end -}}
{{- if empty (index .Values.conf.designate "storage:sqlalchemy").connection -}}
{{- $_ := tuple "oslo_db" "internal" "user" "mysql" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set (index .Values.conf.designate "storage:sqlalchemy") "connection" -}}
{{- $_ := tuple "oslo_db" "internal" "user" "mysql" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set .Values.conf.designate.database "connection" -}}
{{- $_ := tuple "oslo_db" "internal" "designate" "mysql" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set (index .Values.conf.designate "storage:sqlalchemy") "connection" -}}
{{- $_ := tuple "oslo_db" "internal" "designate" "mysql" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set .Values.conf.designate.database "connection" -}}
{{- end -}}
{{- if empty .Values.conf.designate.DEFAULT.transport_url -}}

View File

@ -14,7 +14,7 @@
{{- if .Values.manifests.secret_db }}
{{- $envAll := . }}
{{- range $key1, $userClass := tuple "admin" "user" }}
{{- range $key1, $userClass := tuple "admin" "designate" }}
{{- $secretName := index $envAll.Values.secrets.oslo_db $userClass }}
---
apiVersion: v1

View File

@ -736,7 +736,7 @@ endpoints:
admin:
username: root
password: password
user:
designate:
username: designate
password: password
hosts: