From 0cec4c2dabef929a992ec77b3a2fa1fb0526ca68 Mon Sep 17 00:00:00 2001 From: Yann Soubeyrand Date: Thu, 7 Mar 2024 15:30:44 +0100 Subject: [PATCH] [prometheus-postgres-exporter] allow overriding image registry Signed-off-by: Yann Soubeyrand --- charts/prometheus-postgres-exporter/Chart.yaml | 2 +- charts/prometheus-postgres-exporter/templates/deployment.yaml | 2 +- charts/prometheus-postgres-exporter/values.yaml | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/charts/prometheus-postgres-exporter/Chart.yaml b/charts/prometheus-postgres-exporter/Chart.yaml index c04e3bd8b6f7..de95fda757eb 100644 --- a/charts/prometheus-postgres-exporter/Chart.yaml +++ b/charts/prometheus-postgres-exporter/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: "v0.15.0" description: A Helm chart for prometheus postgres-exporter name: prometheus-postgres-exporter -version: 5.3.0 +version: 6.0.0 home: https://github.com/prometheus-community/postgres_exporter sources: - https://github.com/prometheus-community/postgres_exporter diff --git a/charts/prometheus-postgres-exporter/templates/deployment.yaml b/charts/prometheus-postgres-exporter/templates/deployment.yaml index f233b23a5930..b60e9cb7763e 100644 --- a/charts/prometheus-postgres-exporter/templates/deployment.yaml +++ b/charts/prometheus-postgres-exporter/templates/deployment.yaml @@ -128,7 +128,7 @@ spec: {{ toYaml . | nindent 10 }} {{- end }} {{- end }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} {{- with .Values.command }} command: diff --git a/charts/prometheus-postgres-exporter/values.yaml b/charts/prometheus-postgres-exporter/values.yaml index c94c36cf0290..dcbf1f66297a 100644 --- a/charts/prometheus-postgres-exporter/values.yaml +++ b/charts/prometheus-postgres-exporter/values.yaml @@ -1,7 +1,8 @@ replicaCount: 1 image: - repository: quay.io/prometheuscommunity/postgres-exporter + registry: quay.io + repository: prometheuscommunity/postgres-exporter # if not set appVersion field from Chart.yaml is used tag: "" pullPolicy: IfNotPresent