You've already forked helm-gitea
The following pull request removes the `gitea` directory. With regard to maintaining act_runners in a separate git repository or helm chart, this additional directory becomes redundant. Reviewed-on: https://gitea.com/gitea/helm-gitea/pulls/958 Reviewed-by: DaanSelen <daanselen@noreply.gitea.com> Co-authored-by: Markus Pesch <markus.pesch@cryptic.systems> Co-committed-by: Markus Pesch <markus.pesch@cryptic.systems>
43 lines
1.5 KiB
YAML
43 lines
1.5 KiB
YAML
{{- if and .Values.gitea.metrics.enabled .Values.gitea.metrics.serviceMonitor.enabled -}}
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
name: {{ include "gitea.fullname" . }}
|
|
namespace: {{ .Values.namespace | default .Release.Namespace }}
|
|
labels:
|
|
{{- include "gitea.labels" . | nindent 4 }}
|
|
{{- if .Values.gitea.metrics.serviceMonitor.additionalLabels }}
|
|
{{- toYaml .Values.gitea.metrics.serviceMonitor.additionalLabels | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
{{- include "gitea.selectorLabels" . | nindent 6 }}
|
|
endpoints:
|
|
- port: http
|
|
{{- if .Values.gitea.metrics.serviceMonitor.interval }}
|
|
interval: {{ .Values.gitea.metrics.serviceMonitor.interval }}
|
|
{{- end }}
|
|
{{- with .Values.gitea.metrics.serviceMonitor.relabelings }}
|
|
relabelings:
|
|
{{- . | toYaml | nindent 6 }}
|
|
{{- end }}
|
|
{{- if .Values.gitea.metrics.serviceMonitor.scheme }}
|
|
scheme: {{ .Values.gitea.metrics.serviceMonitor.scheme }}
|
|
{{- end }}
|
|
{{- if .Values.gitea.metrics.serviceMonitor.scrapeTimeout }}
|
|
scrapeTimeout: {{ .Values.gitea.metrics.serviceMonitor.scrapeTimeout }}
|
|
{{- end }}
|
|
{{- with .Values.gitea.metrics.serviceMonitor.tlsConfig }}
|
|
tlsConfig:
|
|
{{- . | toYaml | nindent 6 }}
|
|
{{- end }}
|
|
{{- if .Values.gitea.metrics.token }}
|
|
authorization:
|
|
type: Bearer
|
|
credentials:
|
|
name: {{ include "gitea.metrics-secret-name" . }}
|
|
key: token
|
|
optional: false
|
|
{{- end }}
|
|
{{- end -}} |