fix(blocky): fix servicemonitor crapping out
This commit is contained in:
@@ -26,7 +26,7 @@ sources:
|
|||||||
- https://github.com/0xERR0R/blocky
|
- https://github.com/0xERR0R/blocky
|
||||||
- https://github.com/Mozart409/blocky-frontend
|
- https://github.com/Mozart409/blocky-frontend
|
||||||
- https://hub.docker.com/r/spx01/blocky
|
- https://hub.docker.com/r/spx01/blocky
|
||||||
version: 4.0.0
|
version: 4.0.1
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- network
|
- network
|
||||||
|
|||||||
+3
@@ -1,4 +1,6 @@
|
|||||||
|
{{- define "blocky.prometheusrule" -}}
|
||||||
{{- if and .Values.metrics.enabled .Values.metrics.prometheusRule.enabled }}
|
{{- if and .Values.metrics.enabled .Values.metrics.prometheusRule.enabled }}
|
||||||
|
---
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: PrometheusRule
|
kind: PrometheusRule
|
||||||
metadata:
|
metadata:
|
||||||
@@ -16,3 +18,4 @@ spec:
|
|||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end -}}
|
||||||
+1
@@ -1,5 +1,6 @@
|
|||||||
{{- define "blocky.servicemonitor" -}}
|
{{- define "blocky.servicemonitor" -}}
|
||||||
{{- if .Values.metrics.enabled }}
|
{{- if .Values.metrics.enabled }}
|
||||||
|
---
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
metadata:
|
metadata:
|
||||||
@@ -100,6 +100,7 @@ service:
|
|||||||
{{- include "blocky.dohinjector" . }}
|
{{- include "blocky.dohinjector" . }}
|
||||||
|
|
||||||
{{- include "blocky.servicemonitor" . -}}
|
{{- include "blocky.servicemonitor" . -}}
|
||||||
|
{{- include "blocky.prometheusrule" . -}}
|
||||||
|
|
||||||
{{/* Render the templates */}}
|
{{/* Render the templates */}}
|
||||||
{{ include "tc.common.loader.apply" . }}
|
{{ include "tc.common.loader.apply" . }}
|
||||||
|
|||||||
Reference in New Issue
Block a user