scale-catalog/stable/wireguard/8.8.13/templates/common.yaml
Julian Haseleu 5d1ab94342 cleanup
2024-07-14 21:54:53 +00:00

20 lines
663 B
YAML

{{/* Make sure all variables are set properly */}}
{{- include "tc.v1.common.loader.init" . }}
{{/* Render configmap for wireguard */}}
{{- $configmap := include "wg.env.configmap" . | fromYaml -}}
{{- if $configmap -}}
{{- $_ := set .Values.configmap "wg-env-config" $configmap -}}
{{- end -}}
{{/* Render secret for wireguard */}}
{{- $secret := include "wg.config-secret" . | fromYaml -}}
{{- if $secret -}}
{{- $_ := set .Values.secret "wg-config-secret" $secret -}}
{{- end -}}
{{- $_ := set .Values.persistence "configfile" (include "wireguard.configfile" . | fromYaml) -}}
{{/* Render the templates */}}
{{ include "tc.v1.common.loader.apply" . }}