cleanup authentication credentials for OpenVPN

This commit is contained in:
kjeld Schouten-Lebbing
2021-09-13 21:16:58 +02:00
parent 499db20bca
commit ab1b39b88e
2 changed files with 3 additions and 11 deletions
@@ -28,14 +28,10 @@ env:
value: {{ $v | quote }}
{{- end }}
{{- end }}
{{- if or .Values.addons.vpn.openvpn.auth .Values.addons.vpn.openvpn.authSecret }}
{{- if or .Values.addons.vpn.openvpn.auth }}
envFrom:
- secretRef:
{{- if .Values.addons.vpn.openvpn.authSecret }}
name: {{ .Values.addons.vpn.openvpn.authSecret }}
{{- else }}
name: {{ include "common.names.fullname" . }}-openvpn
{{- end }}
{{- end }}
volumeMounts:
- mountPath: {{ .Values.persistence.shared.mountPath }}
+2 -6
View File
@@ -29,12 +29,8 @@
show_if: [["type", "=", "openvpn"]]
attrs:
- variable: auth
label: "auth"
schema:
type: string
default: ""
- variable: authSecret
label: "authSecret"
label: "authentication credentials"
description: "authentication credentials, seperated by ; example: username;password"
schema:
type: string
default: ""