fix: ensure wireguard env vars get created

This commit is contained in:
kjeld Schouten-Lebbing
2021-09-13 09:25:38 +02:00
parent 005cce560b
commit 0970b3a8d3
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -18,4 +18,4 @@ maintainers:
name: common
sources: null
type: library
version: 7.0.11
version: 7.0.12
@@ -16,6 +16,8 @@ securityContext:
{{- toYaml . | nindent 2 }}
{{- end }}
env:
- name: SEPARATOR
value: ";"
{{- range $envList := .Values.addons.vpn.envList }}
{{- if and $envList.name $envList.value }}
- name: {{ $envList.name }}
@@ -24,13 +26,14 @@ env:
{{- fail "Please specify name/value for VPN environment variable" }}
{{- end }}
{{- end}}
{{- with .Values.addons.vpn.env }}
{{- range $k, $v := . }}
- name: {{ $k }}
value: {{ $v | quote }}
{{- end }}
- name: SEPARATOR
value: ";"
{{- end }}
{{- if .Values.addons.vpn.wireguard.KILLSWITCH }}
- name: KILLSWITCH
value: "true"
@@ -44,7 +47,6 @@ env:
{{- end }}
{{- end }}
{{- end }}
volumeMounts:
- mountPath: {{ .Values.persistence.shared.mountPath }}
name: shared