From 73c4833697a20b49091be4332750b57e6636a032 Mon Sep 17 00:00:00 2001 From: Joseph Villarreal Lopez Date: Thu, 4 Mar 2021 18:34:54 -0600 Subject: [PATCH] Add missing pull secret on Prometheus deployment Prometheus deployment created by the Helm chart is missing a pull secret, variable is necessary to pull the prometheus image from private a repository Signed-off-by: Joseph Villarreal Lopez --- charts/flagger/templates/prometheus.yaml | 5 ++++- charts/flagger/values.yaml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/flagger/templates/prometheus.yaml b/charts/flagger/templates/prometheus.yaml index 287d7f40e..beff9a539 100644 --- a/charts/flagger/templates/prometheus.yaml +++ b/charts/flagger/templates/prometheus.yaml @@ -255,7 +255,10 @@ spec: mountPath: /etc/prometheus - name: data-volume mountPath: /prometheus/data - + {{- if .Values.prometheus.pullSecret }} + imagePullSecrets: + - name: {{ .Values.prometheus.pullSecret }} + {{- end }} volumes: - name: config-volume configMap: diff --git a/charts/flagger/values.yaml b/charts/flagger/values.yaml index b35bb1aa6..50b28ff9a 100644 --- a/charts/flagger/values.yaml +++ b/charts/flagger/values.yaml @@ -125,6 +125,7 @@ prometheus: # to be used with ingress controllers install: false image: docker.io/prom/prometheus:v2.23.0 + pullSecret: retention: 2h kubeconfigQPS: ""