From 6be67bafea4359507372f99284995900c06ab655 Mon Sep 17 00:00:00 2001 From: Renis Makadia Date: Tue, 4 Sep 2018 11:55:50 -0700 Subject: [PATCH] Ceph-RGW missing mon port configuration - Adding missing changes from merged PS 590095 Change-Id: I0bae35ff08c9d422f9f284f65089171f9879766a --- ceph-rgw/templates/configmap-etc-client.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ceph-rgw/templates/configmap-etc-client.yaml b/ceph-rgw/templates/configmap-etc-client.yaml index 25d7e1cfa..62c997b63 100644 --- a/ceph-rgw/templates/configmap-etc-client.yaml +++ b/ceph-rgw/templates/configmap-etc-client.yaml @@ -22,10 +22,15 @@ limitations under the License. {{- if or (.Values.deployment.ceph) (.Values.deployment.client_secrets) }} {{- if empty .Values.conf.ceph.global.mon_host -}} -{{- $monHost := tuple "ceph_mon" "internal" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }} +{{- $monHost := tuple "ceph_mon" "internal" "mon" . | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" }} {{- $_ := $monHost | set .Values.conf.ceph.global "mon_host" -}} {{- end -}} +{{- if empty .Values.conf.ceph.global.mon_addr -}} +{{- $monPort := tuple "ceph_mon" "internal" "mon" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} +{{- $_ := printf ":%s" $monPort | set .Values.conf.ceph.global "mon_addr" -}} +{{- end -}} + {{- if empty .Values.conf.ceph.osd.cluster_network -}} {{- $_ := .Values.network.cluster | set .Values.conf.ceph.osd "cluster_network" -}} {{- end -}}