Commit 9dfac3a John T Skarbek
committed
1 parent 587767a commit 9dfac3a Copy full SHA for 9dfac3a
File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -279,3 +279,13 @@ redis: tls.enabled
279
279
{ {- define " redis.externalDNS.suffix" -} }
280
280
{ { printf " %s.%s" (include " common.names.fullname" .) .Values.useExternalDNS.suffix } }
281
281
{ {- end -} }
282
+
283
+ { {/* Compile all annotations utilized for external-dns */} }
284
+ { {- define " redis.externalDNS.annotations" -} }
285
+ { {- if .Values.useExternalDNS.enabled } }
286
+ { { .Values.useExternalDNS.annotationKey } }hostname: { { include " redis.externalDNS.suffix" . } }
287
+ { {- range $key , $val := .Values.useExternalDNS.additionalAnnotations } }
288
+ { { $.Values.useExternalDNS.annotationKey } }{ { $key } }: { { $val | quote } }
289
+ { {- end } }
290
+ { {- end } }
291
+ { {- end } }
Original file line number Diff line number Diff line change @@ -11,12 +11,7 @@ metadata:
11
11
{{- if .Values.commonAnnotations }}
12
12
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
13
13
{{- end }}
14
- {{- if .Values.useExternalDNS.enabled }}
15
- {{ .Values.useExternalDNS.annotationKey }}hostname: {{ include "redis.externalDNS.suffix" . }}
16
- {{- range $key, $val := .Values.useExternalDNS.additionalAnnotations }}
17
- {{ $.Values.useExternalDNS.annotationKey }}{{ $key }}: {{ $val | quote }}
18
- {{- end }}
19
- {{- end }}
14
+ {{- include "redis.externalDNS.annotations" . | nindent 4 }}
20
15
spec :
21
16
type : ClusterIP
22
17
clusterIP : None
You can’t perform that action at this time.
0 commit comments