fix(argo-cd): proper selectors for notifications metrics (#1176)
* fix(argo-cd): proper selectors for notifications metrics Signed-off-by: Lucas Bickel <lucas.bickel@adfinis.com> * fix(argo-cd): harmonize selectors with appset Signed-off-by: Lucas Bickel <lucas.bickel@adfinis.com> * fix(argo-cd): simplify selector in service Signed-off-by: Lucas Bickel <lucas.bickel@adfinis.com> * fix(argo-cd): proper label for servicemonitor and suffixed service name Signed-off-by: Lucas Bickel <lucas.bickel@adfinis.com>
This commit is contained in:
parent
32a06059c3
commit
8e51693a82
3 changed files with 6 additions and 6 deletions
|
|
@ -4,7 +4,7 @@ kind: Service
|
|||
metadata:
|
||||
name: {{ template "argo-cd.notifications.fullname" . }}-metrics
|
||||
labels:
|
||||
{{- include "argo-cd.labels" (dict "context" . "component" .Values.notifications.name "name" .Values.notifications.name) | nindent 4 }}
|
||||
{{- include "argo-cd.labels" (dict "context" . "component" .Values.notifications.name "name" "metrics") | nindent 4 }}
|
||||
{{- with .Values.notifications.metrics.service.labels }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
|
|
@ -14,7 +14,7 @@ metadata:
|
|||
{{- end }}
|
||||
spec:
|
||||
selector:
|
||||
{{- include "argo-cd.selectorLabels" (dict "context" . "component" .Values.notifications.name "name" "metrics") | nindent 6 }}
|
||||
{{- include "argo-cd.selectorLabels" (dict "context" . "name" .Values.notifications.name) | nindent 6 }}
|
||||
ports:
|
||||
- name: metrics
|
||||
port: {{ .Values.notifications.metrics.port }}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "argo-cd.notifications.fullname" . }}-metrics
|
||||
name: {{ template "argo-cd.notifications.fullname" . }}
|
||||
{{- if .Values.notifications.metrics.serviceMonitor.namespace }}
|
||||
namespace: {{ .Values.notifications.metrics.serviceMonitor.namespace }}
|
||||
{{- end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue