From 723bcd973583f230311026827e317c882a6bb722 Mon Sep 17 00:00:00 2001 From: Ami Mahloof Date: Tue, 17 Oct 2023 10:34:40 -0400 Subject: [PATCH] [stable/node-local-dns]: fix promethues scraping optional for ds. --- stable/node-local-dns/Chart.yaml | 2 +- stable/node-local-dns/README.md | 2 +- stable/node-local-dns/templates/daemonset.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stable/node-local-dns/Chart.yaml b/stable/node-local-dns/Chart.yaml index 9b301bda..b63f2b41 100644 --- a/stable/node-local-dns/Chart.yaml +++ b/stable/node-local-dns/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: node-local-dns -version: 2.0.2 +version: 2.0.3 appVersion: 1.22.23 maintainers: - name: gabrieladt diff --git a/stable/node-local-dns/README.md b/stable/node-local-dns/README.md index 03194e70..05fae994 100644 --- a/stable/node-local-dns/README.md +++ b/stable/node-local-dns/README.md @@ -1,6 +1,6 @@ # node-local-dns -![Version: 2.0.2](https://img.shields.io/badge/Version-2.0.2-informational?style=flat-square) ![AppVersion: 1.22.23](https://img.shields.io/badge/AppVersion-1.22.23-informational?style=flat-square) +![Version: 2.0.3](https://img.shields.io/badge/Version-2.0.3-informational?style=flat-square) ![AppVersion: 1.22.23](https://img.shields.io/badge/AppVersion-1.22.23-informational?style=flat-square) A chart to install node-local-dns. diff --git a/stable/node-local-dns/templates/daemonset.yaml b/stable/node-local-dns/templates/daemonset.yaml index d391fbd7..67eda105 100644 --- a/stable/node-local-dns/templates/daemonset.yaml +++ b/stable/node-local-dns/templates/daemonset.yaml @@ -29,7 +29,7 @@ spec: {{- if or .Values.podAnnotations (not .Values.serviceMonitor.enabled) }} annotations: {{- end }} - {{- if not .Values.serviceMonitor.enabled }} + {{- if and (not .Values.serviceMonitor.enabled) .Values.prometheusScraping.enabled }} prometheus.io/port: "9253" prometheus.io/scrape: "true" {{- end }}