From 08202c438d2bdddbb7189ae26eb60c0e397709b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Mart=C3=ADnez?= <54398646+jmartinezfl@users.noreply.github.com> Date: Mon, 18 Nov 2019 17:57:41 +0100 Subject: [PATCH] Added image pull secret option to download custom image from private repository (#18760) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Javier Martínez --- stable/sonatype-nexus/Chart.yaml | 2 +- stable/sonatype-nexus/README.md | 1 + stable/sonatype-nexus/templates/deployment-statefulset.yaml | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/stable/sonatype-nexus/Chart.yaml b/stable/sonatype-nexus/Chart.yaml index 47e544e203..670f4258ca 100644 --- a/stable/sonatype-nexus/Chart.yaml +++ b/stable/sonatype-nexus/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: sonatype-nexus -version: 1.20.0 +version: 1.21.0 appVersion: 3.17.0-01 description: Sonatype Nexus is an open source repository manager keywords: diff --git a/stable/sonatype-nexus/README.md b/stable/sonatype-nexus/README.md index d4b44868e5..eb550bdb88 100644 --- a/stable/sonatype-nexus/README.md +++ b/stable/sonatype-nexus/README.md @@ -68,6 +68,7 @@ The following table lists the configurable parameters of the Nexus chart and the | `nexus.imageName` | Nexus image | `quay.io/travelaudience/docker-nexus` | | `nexus.imageTag` | Version of Nexus | `3.17.0` | | `nexus.imagePullPolicy` | Nexus image pull policy | `IfNotPresent` | +| `nexus.imagePullSecret` | Secret to download Nexus image from private registry | `nil` | | `nexus.env` | Nexus environment variables | `[{install4jAddVmParams: -Xms1200M -Xmx1200M -XX:MaxDirectMemorySize=2G -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap}]` | | `nexus.resources` | Nexus resource requests and limits | `{}` | | `nexus.dockerPort` | Port to access docker | `5003` | diff --git a/stable/sonatype-nexus/templates/deployment-statefulset.yaml b/stable/sonatype-nexus/templates/deployment-statefulset.yaml index b430e9b712..1c3028a0e8 100644 --- a/stable/sonatype-nexus/templates/deployment-statefulset.yaml +++ b/stable/sonatype-nexus/templates/deployment-statefulset.yaml @@ -55,6 +55,10 @@ spec: hostAliases: {{ toYaml .Values.nexus.hostAliases | indent 8 }} {{- end }} + {{- if .Values.nexus.imagePullSecret }} + imagePullSecrets: + - name: {{ .Values.nexus.imagePullSecret }} + {{- end }} containers: - name: nexus image: {{ .Values.nexus.imageName }}:{{ .Values.nexus.imageTag }}