From 172a6d1519f65402337581114f9c8002ba42aae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20=C3=81guas?= Date: Mon, 11 Sep 2023 23:39:17 +0200 Subject: [PATCH] Move kubeTargetVersion to top of file Signed-off-by: Andre Baptista Aguas --- charts/kube-prometheus-stack/templates/prometheus/service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/kube-prometheus-stack/templates/prometheus/service.yaml b/charts/kube-prometheus-stack/templates/prometheus/service.yaml index ea86fa2ce70a..7834dedd2f50 100644 --- a/charts/kube-prometheus-stack/templates/prometheus/service.yaml +++ b/charts/kube-prometheus-stack/templates/prometheus/service.yaml @@ -1,3 +1,4 @@ +{{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} {{- if .Values.prometheus.enabled }} apiVersion: v1 kind: Service @@ -43,7 +44,6 @@ spec: port: {{ .Values.prometheus.service.port }} targetPort: {{ .Values.prometheus.service.targetPort }} - name: reloader-web - {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} {{- if semverCompare "> 1.20.0-0" $kubeTargetVersion }} appProtocol: http {{- end }}