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:
parent
e4f8dd5810
commit
f3c2fa1784
4 changed files with 18 additions and 3 deletions
|
|
@ -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 }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue