From 33d9ea6d63e82c8cccaff52bd3e362b9b487d972 Mon Sep 17 00:00:00 2001 From: Julian Schlichtholz Date: Thu, 27 Jun 2019 10:13:22 +0200 Subject: [PATCH] [stable/prometheus-blackbox-exporter] Add support for imagePullSecrets (#14903) Signed-off-by: Julian Schlichtholz --- stable/prometheus-blackbox-exporter/Chart.yaml | 2 +- stable/prometheus-blackbox-exporter/README.md | 1 + .../prometheus-blackbox-exporter/templates/deployment.yaml | 6 ++++++ stable/prometheus-blackbox-exporter/values.yaml | 7 +++++++ 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/stable/prometheus-blackbox-exporter/Chart.yaml b/stable/prometheus-blackbox-exporter/Chart.yaml index 0669aff5f5..44b5b5af21 100644 --- a/stable/prometheus-blackbox-exporter/Chart.yaml +++ b/stable/prometheus-blackbox-exporter/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Prometheus Blackbox Exporter name: prometheus-blackbox-exporter -version: 0.3.0 +version: 0.4.0 appVersion: 0.14.0 home: https://github.com/prometheus/blackbox_exporter sources: diff --git a/stable/prometheus-blackbox-exporter/README.md b/stable/prometheus-blackbox-exporter/README.md index 7948c30969..8ab03bb19d 100644 --- a/stable/prometheus-blackbox-exporter/README.md +++ b/stable/prometheus-blackbox-exporter/README.md @@ -56,6 +56,7 @@ The following table lists the configurable parameters of the Blackbox-Exporter c | `image.repository` | container image repository | `prom/blackbox-exporter` | | `image.tag` | container image tag | `v0.14.0` | | `image.pullPolicy` | container image pull policy | `IfNotPresent` | +| `image.pullSecrets` | container image pull secrets | `[]` | | `ingress.annotations` | Ingress annotations | None | | `ingress.enabled` | Enables Ingress | `false` | | `ingress.hosts` | Ingress accepted hostnames | None | diff --git a/stable/prometheus-blackbox-exporter/templates/deployment.yaml b/stable/prometheus-blackbox-exporter/templates/deployment.yaml index 88d7872528..11320b9aa7 100644 --- a/stable/prometheus-blackbox-exporter/templates/deployment.yaml +++ b/stable/prometheus-blackbox-exporter/templates/deployment.yaml @@ -37,6 +37,12 @@ spec: {{- if .Values.tolerations }} tolerations: {{ toYaml .Values.tolerations | indent 6 }} + {{- end }} + {{- if .Values.image.pullSecrets }} + imagePullSecrets: + {{- range .Values.image.pullSecrets }} + - name: {{ . }} + {{- end }} {{- end }} restartPolicy: {{ .Values.restartPolicy }} diff --git a/stable/prometheus-blackbox-exporter/values.yaml b/stable/prometheus-blackbox-exporter/values.yaml index 46041d03d5..ad96e18b5b 100644 --- a/stable/prometheus-blackbox-exporter/values.yaml +++ b/stable/prometheus-blackbox-exporter/values.yaml @@ -5,6 +5,13 @@ image: tag: v0.14.0 pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + nodeSelector: {} tolerations: [] affinity: {}