Files
truecharts/charts/library/common/templates/addons/vpn/_secret.tpl
T
Kjeld Schouten-LebbingandGitHub 5cb0b239e0 Feat: port addons from k8s-at-home to common (#948)
* Feat: port addons from k8s-at-home to common

* use an older version of upstream
2021-09-09 20:55:33 +02:00

20 lines
473 B
Smarty

{{/*
The OpenVPN config secret to be included.
*/}}
{{- define "common.addon.vpn.secret" -}}
{{- if and .Values.addons.vpn.configFile (not .Values.addons.vpn.configFileSecret) }}
---
apiVersion: v1
kind: Secret
metadata:
name: {{ include "common.names.fullname" . }}-vpnconfig
labels:
{{- include "common.labels" $ | nindent 4 }}
stringData:
{{- with .Values.addons.vpn.configFile }}
vpnConfigfile: |-
{{- . | nindent 4}}
{{- end }}
{{- end -}}
{{- end -}}