[stable/prometheus-blackbox-exporter] Add support for imagePullSecrets (#14903)

Signed-off-by: Julian Schlichtholz <jschlichtholz@salesforce.com>
This commit is contained in:
Julian Schlichtholz
2019-06-27 01:13:22 -07:00
committed by Kubernetes Prow Robot
parent 0bb55ee5e6
commit 33d9ea6d63
4 changed files with 15 additions and 1 deletions
@@ -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:
@@ -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 |
@@ -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 }}
@@ -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: {}