cleanup authentication credentials for OpenVPN

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