
* feat(argocd-notifications): Add metrics service labels and annotations Signed-off-by: Sergey Shaykhullin <sergeyshaykhullin@gmail.com> * Update charts/argocd-notifications/templates/service-metrics.yaml Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Signed-off-by: Sergey Shaykhullin <sergeyshaykhullin@gmail.com> * Update charts/argocd-notifications/templates/service-metrics.yaml Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Signed-off-by: Sergey Shaykhullin <sergeyshaykhullin@gmail.com> * Update _helpers.tpl Signed-off-by: Sergey Shaykhullin <sergeyshaykhullin@gmail.com> * Update _helpers.tpl Signed-off-by: Sergey Shaykhullin <sergeyshaykhullin@gmail.com> * Delete templated.yaml Signed-off-by: Sergey Shaykhullin <sergeyshaykhullin@gmail.com> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
22 lines
628 B
YAML
22 lines
628 B
YAML
{{- if .Values.metrics.enabled }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "argocd-notifications.name" . }}-metrics
|
|
labels:
|
|
{{- include "argocd-notifications.metrics.labels" . | nindent 4 }}
|
|
{{- with .Values.metrics.service.labels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with .Values.metrics.service.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
selector:
|
|
{{- include "argocd-notifications.selectorLabels" . | nindent 4 }}
|
|
ports:
|
|
- name: metrics
|
|
port: {{ .Values.metrics.port }}
|
|
targetPort: {{ .Values.metrics.port }}
|
|
{{- end }}
|