fix: nuke all VPN volumes that we don't use (yet) out of Common
This commit is contained in:
parent
76212f693f
commit
9ccdfcb7d8
|
@ -18,4 +18,4 @@ maintainers:
|
||||||
name: common
|
name: common
|
||||||
sources: null
|
sources: null
|
||||||
type: library
|
type: library
|
||||||
version: 7.0.10
|
version: 7.0.11
|
||||||
|
|
|
@ -12,11 +12,6 @@ It will include / inject the required templates based on the given values.
|
||||||
{{- include "common.addon.wireguard" . }}
|
{{- include "common.addon.wireguard" . }}
|
||||||
{{- end -}}
|
{{- 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 -}}
|
{{- $_ := set .Values.persistence "vpnconfig" .Values.addons.vpn.configFile -}}
|
||||||
|
|
||||||
|
|
|
@ -44,16 +44,6 @@ volumeMounts:
|
||||||
- name: vpnconfig
|
- name: vpnconfig
|
||||||
mountPath: /vpn/vpn.conf
|
mountPath: /vpn/vpn.conf
|
||||||
{{- end }}
|
{{- 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 }}
|
{{- with .Values.addons.vpn.livenessProbe }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
{{- toYaml . | nindent 2 }}
|
{{- toYaml . | nindent 2 }}
|
||||||
|
|
|
@ -52,16 +52,6 @@ volumeMounts:
|
||||||
- name: vpnconfig
|
- name: vpnconfig
|
||||||
mountPath: /etc/wireguard/wg0.conf
|
mountPath: /etc/wireguard/wg0.conf
|
||||||
{{- end }}
|
{{- 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 }}
|
{{- with .Values.addons.vpn.livenessProbe }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
{{- toYaml . | nindent 2 }}
|
{{- toYaml . | nindent 2 }}
|
||||||
|
|
Loading…
Reference in New Issue