feat(argocd-notifications): Add metrics service labels and annotations

Signed-off-by: Sergey Shaykhullin <sergeyshaykhullin@gmail.com>
This commit is contained in:
Sergey Shaykhullin 2021-06-03 11:37:47 +03:00
parent 44aa7ed710
commit b67ebfe2fa
5 changed files with 13 additions and 1 deletions

View file

@ -3,7 +3,7 @@ appVersion: 1.1.1
description: A Helm chart for ArgoCD notifications, an add-on to ArgoCD.
name: argocd-notifications
type: application
version: 1.3.2
version: 1.4.0
home: https://github.com/argoproj/argo-helm
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
keywords:

Binary file not shown.

View file

@ -53,8 +53,15 @@ helm.sh/chart: {{ include "argocd-notifications.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{ toYaml .Values.metrics.service.labels }}
{{- end -}}
{{/*
Common metrics annotations
*/}}
{{- define "argocd-notifications.metrics.annotations" -}}
{{ toYaml .Values.metrics.service.annotations }}
{{- end -}}
{{/*
Common slack bot labels

View file

@ -5,6 +5,8 @@ metadata:
name: {{ include "argocd-notifications.name" . }}-metrics
labels:
{{- include "argocd-notifications.metrics.labels" . | nindent 4 }}
annotations:
{{- include "argocd-notifications.metrics.annotations" . | nindent 4 }}
spec:
selector:
{{- include "argocd-notifications.selectorLabels" . | nindent 4 }}

View file

@ -52,6 +52,9 @@ extraArgs: []
metrics:
enabled: false
port: 9001
service:
annotations: {}
labels: {}
serviceMonitor:
enabled: false
additionalLabels: {}