Skip to content

Commit 284755c

Browse files
authored
Add extraEnvVars setting (#24)
1 parent 5c4e9f9 commit 284755c

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

charts/verdaccio/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
description: A lightweight private npm proxy registry (sinopia fork)
33
name: verdaccio
4-
version: 0.10.0
4+
version: 0.11.0
55
appVersion: 3.13.1
66
home: https://verdaccio.org
77
icon: https://cdn.verdaccio.dev/logos/default.png

charts/verdaccio/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ spec:
6363
- mountPath: /verdaccio/conf
6464
name: config
6565
readOnly: true
66+
env:
67+
{{- if .Values.extraEnvVars }}
68+
{{ toYaml .Values.extraEnvVars | indent 12 }}
69+
{{- end }}
6670
{{- if .Values.securityContext.enabled }}
6771
# Allow non-root user to access PersistentVolume
6872
securityContext:

charts/verdaccio/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@ serviceAccount:
5353
enabled: false
5454
# name:
5555

56+
# Extra Environment Values - allows yaml definitions
57+
extraEnvVars:
58+
# - name: VALUE_FROM_SECRET
59+
# valueFrom:
60+
# secretKeyRef:
61+
# name: secret_name
62+
# key: secret_key
63+
# - name: REGULAR_VAR
64+
# value: ABC
65+
5666
configMap: |
5767
# This is the config file used for the docker images.
5868
# It allows all users to do anything, so don't use it on production systems.

0 commit comments

Comments
 (0)