From f56db599889efd0bd60ee6c4bb14129fecb7d223 Mon Sep 17 00:00:00 2001 From: Julian Schlichtholz Date: Thu, 27 Jun 2019 09:25:20 +0200 Subject: [PATCH] [stable/elasticsearch-exporter] Add imagePullSecret support (#14887) Signed-off-by: Julian Schlichtholz --- stable/elasticsearch-exporter/Chart.yaml | 2 +- stable/elasticsearch-exporter/README.md | 1 + stable/elasticsearch-exporter/templates/deployment.yaml | 4 ++++ stable/elasticsearch-exporter/values.yaml | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/stable/elasticsearch-exporter/Chart.yaml b/stable/elasticsearch-exporter/Chart.yaml index ca3616efca..8450f4d31c 100644 --- a/stable/elasticsearch-exporter/Chart.yaml +++ b/stable/elasticsearch-exporter/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Elasticsearch stats exporter for Prometheus name: elasticsearch-exporter -version: 1.4.1 +version: 1.5.0 appVersion: 1.0.2 home: https://github.com/justwatchcom/elasticsearch_exporter sources: diff --git a/stable/elasticsearch-exporter/README.md b/stable/elasticsearch-exporter/README.md index 70328278ec..20cc6bfdbb 100644 --- a/stable/elasticsearch-exporter/README.md +++ b/stable/elasticsearch-exporter/README.md @@ -49,6 +49,7 @@ Parameter | Description | Default `image.repository` | container image repository | `justwatch/elasticsearch_exporter` `image.tag` | container image tag | `1.0.2` `image.pullPolicy` | container image pull policy | `IfNotPresent` +`image.pullSecret` | container image pull secret | `""` `resources` | resource requests & limits | `{}` `priorityClassName` | priorityClassName | `nil` `nodeSelector` | Node labels for pod assignment | `{}` diff --git a/stable/elasticsearch-exporter/templates/deployment.yaml b/stable/elasticsearch-exporter/templates/deployment.yaml index 268e80c85b..ad18705009 100644 --- a/stable/elasticsearch-exporter/templates/deployment.yaml +++ b/stable/elasticsearch-exporter/templates/deployment.yaml @@ -30,6 +30,10 @@ spec: spec: {{- if .Values.priorityClassName }} priorityClassName: "{{ .Values.priorityClassName }}" +{{- end }} +{{- if .Values.image.pullSecret }} + imagePullSecrets: + - name: {{ .Values.image.pullSecret }} {{- end }} restartPolicy: {{ .Values.restartPolicy }} {{- if .Values.securityContext.enabled }} diff --git a/stable/elasticsearch-exporter/values.yaml b/stable/elasticsearch-exporter/values.yaml index 03ac25315c..ff6c48bb1a 100644 --- a/stable/elasticsearch-exporter/values.yaml +++ b/stable/elasticsearch-exporter/values.yaml @@ -10,6 +10,7 @@ image: repository: justwatch/elasticsearch_exporter tag: 1.0.2 pullPolicy: IfNotPresent + pullSecret: "" ## Set enabled to false if you don't want securityContext ## in your Deployment.