fix: Allow metrics service without CoreOS Service Monitor (#775)

Signed-off-by: Pedro Arvela <pedro.arvela@onfido.com>
This commit is contained in:
Pedro Arvela 2021-05-31 22:23:05 +01:00 committed by GitHub
parent 4a905d5736
commit b582098455
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{{- if .Values.controller.metrics.serviceMonitor.enabled }}
{{- if .Values.controller.metrics.enabled }}
apiVersion: v1
kind: Service
metadata:

View file

@ -1,4 +1,4 @@
{{- if .Values.controller.metrics.serviceMonitor.enabled }}
{{- if and .Values.controller.metrics.enabled .Values.controller.metrics.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata: