argocd-helm/charts/argo-cd/templates/argocd-application-controller/service.yaml
Marco Kilchhofer 3b0ebdda66
refactor(argo-cd): Use templating for labels (#627)
Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
2021-03-22 16:15:37 -04:00

19 lines
No EOL
720 B
YAML

apiVersion: v1
kind: Service
metadata:
{{- if .Values.controller.service.annotations }}
annotations:
{{- range $key, $value := .Values.controller.service.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
name: {{ template "argo-cd.controller.fullname" . }}
labels:
{{- include "argo-cd.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }}
spec:
ports:
- name: {{ .Values.controller.service.portName }}
port: {{ .Values.controller.service.port }}
targetPort: {{ .Values.controller.containerPort }}
selector:
{{- include "argo-cd.selectorLabels" (dict "context" . "name" .Values.controller.name) | nindent 4 }}