From f5e395597054cc94ee7d9d92813552501c22266e Mon Sep 17 00:00:00 2001 From: Ludovic Ortega Date: Tue, 18 Jun 2024 19:20:39 +0200 Subject: [PATCH] [prometheus-smartctl-exporter] add support for dual stack clusters (#4609) Signed-off-by: Ludovic Ortega --- charts/prometheus-smartctl-exporter/Chart.yaml | 2 +- charts/prometheus-smartctl-exporter/templates/service.yaml | 4 ++++ charts/prometheus-smartctl-exporter/values.yaml | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/charts/prometheus-smartctl-exporter/Chart.yaml b/charts/prometheus-smartctl-exporter/Chart.yaml index e3a2a61473d4..6eb5df8b745f 100644 --- a/charts/prometheus-smartctl-exporter/Chart.yaml +++ b/charts/prometheus-smartctl-exporter/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.9.0 +version: 0.10.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/prometheus-smartctl-exporter/templates/service.yaml b/charts/prometheus-smartctl-exporter/templates/service.yaml index 63a15b0a507b..ceae2c60b0df 100644 --- a/charts/prometheus-smartctl-exporter/templates/service.yaml +++ b/charts/prometheus-smartctl-exporter/templates/service.yaml @@ -6,6 +6,10 @@ metadata: {{- include "prometheus-smartctl-exporter.labels" . | nindent 4 }} spec: type: {{ .Values.service.type }} + {{- if .Values.service.ipDualStack.enabled }} + ipFamilies: {{ toYaml .Values.service.ipDualStack.ipFamilies | nindent 4 }} + ipFamilyPolicy: {{ .Values.service.ipDualStack.ipFamilyPolicy }} + {{- end }} ports: - port: {{ .Values.service.port }} targetPort: http diff --git a/charts/prometheus-smartctl-exporter/values.yaml b/charts/prometheus-smartctl-exporter/values.yaml index a42774066673..001def18abf5 100644 --- a/charts/prometheus-smartctl-exporter/values.yaml +++ b/charts/prometheus-smartctl-exporter/values.yaml @@ -80,3 +80,7 @@ affinity: {} service: type: ClusterIP port: 80 + ipDualStack: + enabled: false + ipFamilies: ["IPv6", "IPv4"] + ipFamilyPolicy: "PreferDualStack"