(chore) restructure common setup templates

This commit is contained in:
kjeld Schouten-Lebbing
2021-10-09 23:43:48 +02:00
parent d9f78c62c9
commit fbb340e2d0
17 changed files with 24 additions and 20 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}
{{- include "common.setup" . }}
{{/* Render config and secrets for sogo */}}
{{- include "sogo.config" . }}
+1 -1
View File
@@ -15,4 +15,4 @@ maintainers:
name: common
sources: null
type: library
version: 8.3.1
version: 8.3.2
+2 -5
View File
@@ -2,8 +2,8 @@
Main entrypoint for the common library chart. It will render all underlying templates based on the provided values.
*/}}
{{- define "common.all" -}}
{{- /* Merge the local chart values and the common chart defaults */ -}}
{{- include "common.values.setup" . }}
{{- /* Generate chart and dependency values */ -}}
{{- include "common.setup" . }}
{{- /* Enable code-server add-on if required */ -}}
{{- if .Values.addons.codeserver.enabled }}
@@ -28,9 +28,6 @@ Main entrypoint for the common library chart. It will render all underlying temp
{{- /* Build the templates */ -}}
{{- include "common.pvc" . }}
{{- /* Autogenerate postgresql passwords if needed */ -}}
{{- include "common.dependencies.postgresql.injector" . }}
{{- if .Values.serviceAccount.create -}}
{{- include "common.serviceAccount" . }}
{{- end -}}
@@ -0,0 +1,7 @@
{{- define "common.setup" -}}
{{- /* Merge the local chart values and the common chart defaults */ -}}
{{- include "common.values" . }}
{{- /* Autogenerate postgresql passwords if needed */ -}}
{{- include "common.dependencies.postgresql.injector" . }}
{{- end -}}
@@ -1,5 +1,5 @@
{{/* Merge the local chart values and the common chart defaults */}}
{{- define "common.values.setup" -}}
{{- define "common.values" -}}
{{- if .Values.common -}}
{{- $defaultValues := deepCopy .Values.common -}}
{{- $userValues := deepCopy (omit .Values "common") -}}
+1 -1
View File
@@ -1,5 +1,5 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}
{{- include "common.setup" . }}
{{/* Render configmap for authelia */}}
{{- include "authelia.configmap" . }}
@@ -1,5 +1,5 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}
{{- include "common.setup" . }}
{{/* Render the templates */}}
{{ include "common.all" . }}
@@ -1,5 +1,5 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}
{{- include "common.setup" . }}
{{/* Render the templates */}}
{{ include "common.all" . }}
+1 -1
View File
@@ -1,5 +1,5 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}
{{- include "common.setup" . }}
{{/* Render secrets for gitea */}}
{{- include "gitea.secrets" . }}
@@ -1,5 +1,5 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}
{{- include "common.setup" . }}
{{/* Render configmap for nextcloud */}}
@@ -1,5 +1,5 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}
{{- include "common.setup" . }}
{{/* Render the templates */}}
{{ include "common.all" . }}
@@ -1,5 +1,5 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}
{{- include "common.setup" . }}
{{/* Append the configMap volume to the volumes */}}
{{- define "mosquitto.configVolume" -}}
@@ -1,5 +1,5 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}
{{- include "common.setup" . }}
{{/* Render configmap for nextcloud */}}
{{- include "nextcloud.configmap" . }}
+1 -1
View File
@@ -1,5 +1,5 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}
{{- include "common.setup" . }}
{{/* Render the templates */}}
{{ include "common.all" . }}
+1 -1
View File
@@ -1,5 +1,5 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}
{{- include "common.setup" . }}
{{/* Render configmap for pihole */}}
{{- include "pihole.configmap" . }}
+1 -1
View File
@@ -1,5 +1,5 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}
{{- include "common.setup" . }}
{{- if .Values.metrics }}
{{- if .Values.metrics.prometheus }}
@@ -1,5 +1,5 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}
{{- include "common.setup" . }}
{{/* Render configmap for vaultwarden */}}