fix(blocky): fix servicemonitor crapping out

This commit is contained in:
Kjeld Schouten-Lebbing 2022-11-15 12:04:22 +01:00
parent 7fc2bde812
commit 37fdc30959
No known key found for this signature in database
GPG Key ID: 3D586240A9175B99
4 changed files with 6 additions and 1 deletions

View File

@ -26,7 +26,7 @@ sources:
- https://github.com/0xERR0R/blocky
- https://github.com/Mozart409/blocky-frontend
- https://hub.docker.com/r/spx01/blocky
version: 4.0.0
version: 4.0.1
annotations:
truecharts.org/catagories: |
- network

View File

@ -1,4 +1,6 @@
{{- define "blocky.prometheusrule" -}}
{{- if and .Values.metrics.enabled .Values.metrics.prometheusRule.enabled }}
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
@ -16,3 +18,4 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- end -}}

View File

@ -1,5 +1,6 @@
{{- define "blocky.servicemonitor" -}}
{{- if .Values.metrics.enabled }}
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:

View File

@ -100,6 +100,7 @@ service:
{{- include "blocky.dohinjector" . }}
{{- include "blocky.servicemonitor" . -}}
{{- include "blocky.prometheusrule" . -}}
{{/* Render the templates */}}
{{ include "tc.common.loader.apply" . }}