|
43 | 43 | get_full_hostname() {
|
44 | 44 | hostname="$1"
|
45 | 45 |
|
46 |
| - {{- if .Values.externalDNS.enabled }} |
47 |
| - echo "${hostname}.{{- printf "%s.%s" (include "common.names.fullname" .) .Values.externalDNS.suffix }}" |
| 46 | + {{- if .Values.useExternalDNS.enabled }} |
| 47 | + echo "${hostname}.{{- include "redis.externalDNS.suffix" . }}" |
48 | 48 | {{- else if eq .Values.sentinel.service.type "NodePort" }}
|
49 | 49 | echo "${hostname}.{{- .Release.Namespace }}"
|
50 | 50 | {{- else }}
|
@@ -250,8 +250,8 @@ data:
|
250 | 250 | get_full_hostname() {
|
251 | 251 | hostname="$1"
|
252 | 252 |
|
253 |
| - {{- if .Values.externalDNS.enabled }} |
254 |
| - echo "${hostname}.{{- printf "%s.%s" (include "common.names.fullname" .) .Values.externalDNS.suffix }}" |
| 253 | + {{- if .Values.useExternalDNS.enabled }} |
| 254 | + echo "${hostname}.{{- include "redis.externalDNS.suffix" . }}" |
255 | 255 | {{- else if eq .Values.sentinel.service.type "NodePort" }}
|
256 | 256 | echo "${hostname}.{{- .Release.Namespace }}"
|
257 | 257 | {{- else }}
|
@@ -400,8 +400,8 @@ data:
|
400 | 400 | get_full_hostname() {
|
401 | 401 | hostname="$1"
|
402 | 402 |
|
403 |
| - {{- if .Values.externalDNS.enabled }} |
404 |
| - echo "${hostname}.{{- printf "%s.%s" (include "common.names.fullname" .) .Values.externalDNS.suffix }}" |
| 403 | + {{- if .Values.useExternalDNS.enabled }} |
| 404 | + echo "${hostname}.{{- include "redis.externalDNS.suffix" . }}" |
405 | 405 | {{- else if eq .Values.sentinel.service.type "NodePort" }}
|
406 | 406 | echo "${hostname}.{{- .Release.Namespace }}"
|
407 | 407 | {{- else }}
|
@@ -547,8 +547,8 @@ data:
|
547 | 547 | get_full_hostname() {
|
548 | 548 | hostname="$1"
|
549 | 549 |
|
550 |
| - {{- if .Values.externalDNS.enabled }} |
551 |
| - echo "${hostname}.{{- printf "%s.%s" (include "common.names.fullname" .) .Values.externalDNS.suffix }}" |
| 550 | + {{- if .Values.useExternalDNS.enabled }} |
| 551 | + echo "${hostname}.{{- include "redis.externalDNS.suffix" . }}" |
552 | 552 | {{- else if eq .Values.sentinel.service.type "NodePort" }}
|
553 | 553 | echo "${hostname}.{{- .Release.Namespace }}"
|
554 | 554 | {{- else }}
|
|
0 commit comments