argocd-helm/charts/argo-cd/templates/redis/service.yaml
Marco Kilchhofer eedcf15a9c
fix(argo-cd): One occurrence of label templating was missing (#630)
This relates to #627.

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
2021-03-23 08:28:23 -04:00

15 lines
No EOL
558 B
YAML

{{- $redisHa := (index .Values "redis-ha") -}}
{{- if and .Values.redis.enabled (not $redisHa.enabled) -}}
apiVersion: v1
kind: Service
metadata:
name: {{ template "argo-cd.redis.fullname" . }}
labels:
{{- include "argo-cd.labels" (dict "context" . "component" .Values.redis.name "name" .Values.redis.name) | nindent 4 }}
spec:
ports:
- port: {{ .Values.redis.servicePort }}
targetPort: {{ .Values.redis.servicePort }}
selector:
{{- include "argo-cd.selectorLabels" (dict "context" . "name" .Values.redis.name) | nindent 4 }}
{{- end }}