fix: nuke all VPN volumes that we don't use (yet) out of Common

This commit is contained in:
kjeld Schouten-Lebbing 2021-09-12 22:48:31 +02:00
parent 76212f693f
commit 9ccdfcb7d8
No known key found for this signature in database
GPG Key ID: 4CDAD4A532BC1EDB
4 changed files with 1 additions and 26 deletions

View File

@ -18,4 +18,4 @@ maintainers:
name: common
sources: null
type: library
version: 7.0.10
version: 7.0.11

View File

@ -12,11 +12,6 @@ It will include / inject the required templates based on the given values.
{{- include "common.addon.wireguard" . }}
{{- end -}}
{{/* Include the configmap if not empty */}}
{{- $configmap := include "common.addon.vpn.configmap" . -}}
{{- if $configmap -}}
{{- $configmap | nindent 0 -}}
{{- end -}}
{{- $_ := set .Values.persistence "vpnconfig" .Values.addons.vpn.configFile -}}

View File

@ -44,16 +44,6 @@ volumeMounts:
- name: vpnconfig
mountPath: /vpn/vpn.conf
{{- end }}
{{- if .Values.addons.vpn.scripts.up }}
- name: vpnscript
mountPath: /vpn/up.sh
subPath: up.sh
{{- end }}
{{- if .Values.addons.vpn.scripts.down }}
- name: vpnscript
mountPath: /vpn/down.sh
subPath: down.sh
{{- end }}
{{- with .Values.addons.vpn.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 2 }}

View File

@ -52,16 +52,6 @@ volumeMounts:
- name: vpnconfig
mountPath: /etc/wireguard/wg0.conf
{{- end }}
{{- if .Values.addons.vpn.scripts.up }}
- name: vpnscript
mountPath: /config/up.sh
subPath: up.sh
{{- end }}
{{- if .Values.addons.vpn.scripts.down }}
- name: vpnscript
mountPath: /config/down.sh
subPath: down.sh
{{- end }}
{{- with .Values.addons.vpn.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 2 }}