Files
helm-library-common/charts/common/templates/addons/vpn/openvpn/_secret.tpl
T

17 lines
361 B
Smarty
Raw Normal View History

2021-12-29 16:10:50 -05:00
{{/*
The OpenVPN credentials secrets to be included.
*/}}
{{- define "common.addon.openvpn.secret" -}}
{{- with .Values.addons.vpn.openvpn.auth }}
---
apiVersion: v1
kind: Secret
metadata:
name: {{ include "common.names.fullname" $ }}-openvpn
labels:
{{- include "common.labels" $ | nindent 4 }}
data:
VPN_AUTH: {{ . | b64enc }}
{{- end -}}
{{- end -}}