mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user