feat!: set proper namespaces and allow override

This commit is contained in:
Michael Kriese 2024-09-11 10:52:08 +02:00
parent 270a25b695
commit f77285a8c6
No known key found for this signature in database
GPG key ID: F8D7748549A5986A
15 changed files with 48 additions and 22 deletions

View file

@ -3,6 +3,7 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "gitea.fullname" . }}
namespace: {{ default (include "common.names.namespace" .) .Values.gitea.metrics.serviceMonitor.namespace | quote }}
labels:
{{- include "gitea.labels" . | nindent 4 }}
{{- if .Values.gitea.metrics.serviceMonitor.additionalLabels }}
@ -14,4 +15,4 @@ spec:
{{- include "gitea.selectorLabels" . | nindent 6 }}
endpoints:
- port: http
{{- end -}}
{{- end -}}