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 -}}