feat(argocd-notifications): Add metrics service labels and annotations
Signed-off-by: Sergey Shaykhullin <sergeyshaykhullin@gmail.com>
This commit is contained in:
parent
44aa7ed710
commit
b67ebfe2fa
5 changed files with 13 additions and 1 deletions
|
@ -3,7 +3,7 @@ appVersion: 1.1.1
|
||||||
description: A Helm chart for ArgoCD notifications, an add-on to ArgoCD.
|
description: A Helm chart for ArgoCD notifications, an add-on to ArgoCD.
|
||||||
name: argocd-notifications
|
name: argocd-notifications
|
||||||
type: application
|
type: application
|
||||||
version: 1.3.2
|
version: 1.4.0
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
|
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
|
||||||
keywords:
|
keywords:
|
||||||
|
|
BIN
charts/argocd-notifications/templated.yaml
Normal file
BIN
charts/argocd-notifications/templated.yaml
Normal file
Binary file not shown.
|
@ -53,8 +53,15 @@ helm.sh/chart: {{ include "argocd-notifications.chart" . }}
|
||||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{ toYaml .Values.metrics.service.labels }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common metrics annotations
|
||||||
|
*/}}
|
||||||
|
{{- define "argocd-notifications.metrics.annotations" -}}
|
||||||
|
{{ toYaml .Values.metrics.service.annotations }}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Common slack bot labels
|
Common slack bot labels
|
||||||
|
|
|
@ -5,6 +5,8 @@ metadata:
|
||||||
name: {{ include "argocd-notifications.name" . }}-metrics
|
name: {{ include "argocd-notifications.name" . }}-metrics
|
||||||
labels:
|
labels:
|
||||||
{{- include "argocd-notifications.metrics.labels" . | nindent 4 }}
|
{{- include "argocd-notifications.metrics.labels" . | nindent 4 }}
|
||||||
|
annotations:
|
||||||
|
{{- include "argocd-notifications.metrics.annotations" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
{{- include "argocd-notifications.selectorLabels" . | nindent 4 }}
|
{{- include "argocd-notifications.selectorLabels" . | nindent 4 }}
|
||||||
|
|
|
@ -52,6 +52,9 @@ extraArgs: []
|
||||||
metrics:
|
metrics:
|
||||||
enabled: false
|
enabled: false
|
||||||
port: 9001
|
port: 9001
|
||||||
|
service:
|
||||||
|
annotations: {}
|
||||||
|
labels: {}
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: false
|
enabled: false
|
||||||
additionalLabels: {}
|
additionalLabels: {}
|
||||||
|
|
Loading…
Reference in a new issue