refactor: Restructure common init and additional container layout to dicts (#950)

* refactor: Restructure common init and additional container layout to dicts

BREAKING CHANGE
This commit is contained in:
Kjeld Schouten-Lebbing
2021-09-09 21:48:43 +02:00
committed by GitHub
parent 66da4ab46c
commit e0e0a4a2f2
12 changed files with 50 additions and 25 deletions
@@ -6,8 +6,7 @@ and add a credentials secret if speciffied.
{{/* Append the openVPN container to the additionalContainers */}}
{{- $container := include "common.addon.openvpn.container" . | fromYaml -}}
{{- if $container -}}
{{- $additionalContainers := append .Values.additionalContainers $container -}}
{{- $_ := set .Values "additionalContainers" $additionalContainers -}}
{{- $_ := set .Values.additionalContainers "addon-openvpn" $container -}}
{{- end -}}
{{/* Include the secret if not empty */}}
@@ -6,7 +6,6 @@ Template to render Wireguard addon. It will add the container to the list of add
{{/* Append the Wireguard container to the additionalContainers */}}
{{- $container := fromYaml (include "common.addon.wireguard.container" .) -}}
{{- if $container -}}
{{- $additionalContainers := append .Values.additionalContainers $container -}}
{{- $_ := set .Values "additionalContainers" $additionalContainers -}}
{{- $_ := set .Values.additionalContainers "addon-wireguard" $container -}}
{{- end -}}
{{- end -}}