Skip to content

Commit b8dda9a

Browse files
LoicGombeaudLoïc Antoine-Gombeaud
and
Loïc Antoine-Gombeaud
authored
Feat: existing secret (#100)
Co-authored-by: Loïc Antoine-Gombeaud <[email protected]>
1 parent 9b1c809 commit b8dda9a

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ and their default values.
119119
| `serviceAccount.name` | Service account Name | none |
120120
| `extraEnvVars` | Define environment variables to be passed to the container | `[]` |
121121
| `secretEnvVars` | Define sensitive environment variables to be passed to the container | `{}` |
122+
| `existingSecret` | Existing secret containing environment variables to be passed to the container | `""` |
122123
| `extraInitContainers` | Define additional initContainers to be added to the deployment | `[]` |
123124
| `securityContext` | Define Container Security Context | `{runAsUser=10001}` |
124125
| `podSecurityContext` | Define Pod Security Context | `{fsGroup=101}` |

charts/verdaccio/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
description: A lightweight private node.js proxy registry
33
name: verdaccio
4-
version: 4.8.0
4+
version: 4.9.0
55
appVersion: 5.5.0
66
home: https://verdaccio.org
77
icon: https://cdn.verdaccio.dev/logos/default.png

charts/verdaccio/templates/deployment.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,16 @@ spec:
4242
- name: {{ template "verdaccio.name" . }}
4343
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
4444
imagePullPolicy: {{ .Values.image.pullPolicy }}
45-
{{- if .Values.secretEnvVars }}
45+
{{- if or .Values.secretEnvVars .Values.existingSecret }}
4646
envFrom:
47+
{{- if .Values.secretEnvVars }}
4748
- secretRef:
4849
name: {{ template "verdaccio.fullname" . }}-env
50+
{{- end }}
51+
{{- if .Values.existingSecret }}
52+
- secretRef:
53+
name: {{ .Values.existingSecret }}
54+
{{- end }}
4955
{{- end }}
5056
ports:
5157
- containerPort: 4873

charts/verdaccio/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ secretEnvVars: {}
115115
# corp_artifactory: foo
116116
# npmjs: bar
117117

118+
## Existing Secret
119+
## Existing secret containing environment variables to be passed to the container
120+
existingSecret: ""
121+
118122
# Extra Init Containers - allows yaml definitions
119123
extraInitContainers: []
120124

0 commit comments

Comments
 (0)