* Create optional serviceAnnotations value for redis in helm chart Signed-off-by: arunkumar.anandhan <arunkumar.anandhan@niceincontact.com> * Uncomment accidentally commented lines Signed-off-by: arunkumar.anandhan <arunkumar.anandhan@niceincontact.com> * update chart version Signed-off-by: arunkumar.anandhan <arunkumar.anandhan@niceincontact.com> * update service annotation key for redis Signed-off-by: arunkumar.anandhan <arunkumar.anandhan@niceincontact.com> * Update L24 with appropriate description Signed-off-by: arunkumar.anandhan <arunkumar.anandhan@niceincontact.com> * Move redis.service key occurence in values Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> * Also implement additional labels Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> * Add documentation - Changelog annotations - Add new values to README Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> * fix: Use correct value for redis service targetPort Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
22 lines
No EOL
762 B
YAML
22 lines
No EOL
762 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 }}
|
|
{{- with .Values.redis.service.labels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with .Values.redis.service.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
ports:
|
|
- port: {{ .Values.redis.servicePort }}
|
|
targetPort: {{ .Values.redis.containerPort }}
|
|
selector:
|
|
{{- include "argo-cd.selectorLabels" (dict "context" . "name" .Values.redis.name) | nindent 4 }}
|
|
{{- end }} |