From c9c99aaaaba8ab526ff8972f85675583984bcd55 Mon Sep 17 00:00:00 2001 From: Ole Markus With Date: Tue, 27 Mar 2018 23:45:13 +0200 Subject: [PATCH] [stable/neo4j] Add support for imagePullSecrets (#4454) * Add support for imagePullSecret * Bumping minor version * lower case imagePullSecret --- stable/neo4j/Chart.yaml | 2 +- stable/neo4j/templates/core-statefulset.yaml | 4 ++++ stable/neo4j/templates/readreplicas-deployment.yaml | 4 ++++ stable/neo4j/values.yaml | 1 + 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/stable/neo4j/Chart.yaml b/stable/neo4j/Chart.yaml index d02939a6d1..177602c506 100644 --- a/stable/neo4j/Chart.yaml +++ b/stable/neo4j/Chart.yaml @@ -1,6 +1,6 @@ name: neo4j home: https://www.neo4j.com -version: 0.5.1 +version: 0.6.0 appVersion: 3.2.3 description: Neo4j is the world's leading graph database icon: http://info.neo4j.com/rs/773-GON-065/images/neo4j_logo.png diff --git a/stable/neo4j/templates/core-statefulset.yaml b/stable/neo4j/templates/core-statefulset.yaml index 8b679bf515..ae42b90b88 100644 --- a/stable/neo4j/templates/core-statefulset.yaml +++ b/stable/neo4j/templates/core-statefulset.yaml @@ -85,6 +85,10 @@ spec: {{- if .Values.core.sidecarContainers }} {{ toYaml .Values.core.sidecarContainers | indent 6}} {{- end }} +{{- if .Values.imagePullSecret }} + imagePullSecrets: + - name: {{ .Values.imagePullSecret }} +{{- end -}} {{- if .Values.core.initContainers }} initContainers: {{ toYaml .Values.core.initContainers | indent 6}} diff --git a/stable/neo4j/templates/readreplicas-deployment.yaml b/stable/neo4j/templates/readreplicas-deployment.yaml index 2c745e3add..82007914cf 100644 --- a/stable/neo4j/templates/readreplicas-deployment.yaml +++ b/stable/neo4j/templates/readreplicas-deployment.yaml @@ -73,3 +73,7 @@ spec: volumes: - name: plugins emptyDir: {} +{{- if .Values.imagePullSecret }} + imagePullSecrets: + - name: {{ .Values.imagePullSecret }} +{{- end -}} \ No newline at end of file diff --git a/stable/neo4j/values.yaml b/stable/neo4j/values.yaml index f1b43745db..b5239058c3 100644 --- a/stable/neo4j/values.yaml +++ b/stable/neo4j/values.yaml @@ -9,6 +9,7 @@ name: "neo4j" image: "neo4j" imageTag: "3.2.3-enterprise" imagePullPolicy: "IfNotPresent" +# imagePullSecret: registry-secret # Use password authentication authEnabled: true