From 02841cb1b43dde640bb0e1ff890aaf5d4daac0a3 Mon Sep 17 00:00:00 2001 From: allaVolkov <42611923+allaVolkov@users.noreply.github.com> Date: Thu, 1 Aug 2019 00:58:14 +0300 Subject: [PATCH] [stable/influxdb] Add support for imagePullSecrets (#15159) (#16005) Signed-off-by: Alla Volkov Signed-off-by: i019379 --- stable/influxdb/Chart.yaml | 2 +- stable/influxdb/templates/deployment.yaml | 6 ++++++ stable/influxdb/values.yaml | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/stable/influxdb/Chart.yaml b/stable/influxdb/Chart.yaml index 30876f2c48..1e3b08d370 100755 --- a/stable/influxdb/Chart.yaml +++ b/stable/influxdb/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: influxdb -version: 1.3.0 +version: 1.3.1 appVersion: 1.7.6 description: Scalable datastore for metrics, events, and real-time analytics. keywords: diff --git a/stable/influxdb/templates/deployment.yaml b/stable/influxdb/templates/deployment.yaml index c70b3b51cd..e74e250c40 100644 --- a/stable/influxdb/templates/deployment.yaml +++ b/stable/influxdb/templates/deployment.yaml @@ -15,6 +15,12 @@ spec: app: {{ template "influxdb.fullname" . }} release: "{{ .Release.Name }}" spec: + {{- if .Values.image.pullSecrets }} + imagePullSecrets: + {{- range .Values.image.pullSecrets }} + - name: {{ . }} + {{- end}} + {{- end }} containers: - name: {{ template "influxdb.fullname" . }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" diff --git a/stable/influxdb/values.yaml b/stable/influxdb/values.yaml index d66077ec19..47b5e9288e 100644 --- a/stable/influxdb/values.yaml +++ b/stable/influxdb/values.yaml @@ -4,6 +4,9 @@ image: repository: "influxdb" tag: "1.7.6-alpine" pullPolicy: IfNotPresent + ## If specified, use these secrets to access the images + # pullSecrets: + # - registry-secret ## Specify a service type ## NodePort is default