From 19d0266d216507f0f8fbcac09c690f3418266806 Mon Sep 17 00:00:00 2001 From: Fredrik Larsson <10245011+BadLiveware@users.noreply.github.com> Date: Thu, 8 Aug 2024 13:40:06 +0200 Subject: [PATCH] Disable prometheus metrics service annotations by default --- .../sourcegraph-executor/k8s/templates/executor.Service.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/sourcegraph-executor/k8s/templates/executor.Service.yaml b/charts/sourcegraph-executor/k8s/templates/executor.Service.yaml index 319a9d5f..100949da 100644 --- a/charts/sourcegraph-executor/k8s/templates/executor.Service.yaml +++ b/charts/sourcegraph-executor/k8s/templates/executor.Service.yaml @@ -1,9 +1,13 @@ apiVersion: v1 kind: Service metadata: + {{- if or .Values.executor.serviceMetricsEnabled .Values.executor.serviceAnnotations }} annotations: + {{- end }} + {{- if .Values.executor.serviceMetricsEnabled }} prometheus.io/port: "6060" sourcegraph.prometheus/scrape: "true" + {{- end }} {{- if .Values.executor.serviceAnnotations }} {{- toYaml .Values.executor.serviceAnnotations | nindent 4 }} {{- end }}