feat(argo-cd): Create optional annotations and labels for redis service (#955)

* 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>
This commit is contained in:
Arun Anandhan 2021-10-04 16:19:30 -06:00 committed by GitHub
parent e4f8dd5810
commit f3c2fa1784
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 3 deletions

View file

@ -6,10 +6,17 @@ 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.servicePort }}
targetPort: {{ .Values.redis.containerPort }}
selector:
{{- include "argo-cd.selectorLabels" (dict "context" . "name" .Values.redis.name) | nindent 4 }}
{{- end }}