[stable/verdaccio] Add environment variables definition (#20223)

* [stable/verdaccio] add extraEnvVars definition

Allow extra environment variables to be defined and passed to the container

Signed-off-by: João Francisco <jpaisneto@gmail.com>

* [stable/verdaccio] Bump Chart version

Signed-off-by: João Francisco <jpaisneto@gmail.com>
This commit is contained in:
João Francisco
2020-01-30 23:02:18 -08:00
committed by GitHub
parent c56f4d4ad9
commit 3b99e52cb8
4 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: A lightweight private npm proxy registry (sinopia fork)
name: verdaccio
version: 0.7.4
version: 0.7.5
appVersion: 3.11.6
home: http://www.verdaccio.org
icon: https://raw.githubusercontent.com/verdaccio/verdaccio/master/assets/bitmap/logo/logo-twitter.png
+1
View File
@@ -77,6 +77,7 @@ and their default values.
| `service.port` | Service port to expose | `4873` |
| `service.nodePort` | Service port to expose | none |
| `service.type` | Type of service to create | `ClusterIP` |
| `extraEnvVars` | Define environment variables to be passed to the container | `{}`
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
@@ -60,6 +60,10 @@ spec:
- mountPath: /verdaccio/conf
name: config
readOnly: true
env:
{{- if .Values.extraEnvVars }}
{{ toYaml .Values.extraEnvVars | indent 12 }}
{{- end }}
{{- if .Values.securityContext.enabled }}
# Allow non-root user to access PersistentVolume
securityContext:
+10
View File
@@ -48,6 +48,16 @@ ingress:
# hosts:
# - npm.blah.com
# Extra Environment Values - allows yaml definitions
extraEnvVars:
# - name: VALUE_FROM_SECRET
# valueFrom:
# secretKeyRef:
# name: secret_name
# key: secret_key
# - name: REGULAR_VAR
# value: ABC
configMap: |
# This is the config file used for the docker images.
# It allows all users to do anything, so don't use it on production systems.