(chore) restructure common setup templates
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
{{/* Make sure all variables are set properly */}}
|
{{/* Make sure all variables are set properly */}}
|
||||||
{{- include "common.values.setup" . }}
|
{{- include "common.setup" . }}
|
||||||
|
|
||||||
{{/* Render config and secrets for sogo */}}
|
{{/* Render config and secrets for sogo */}}
|
||||||
{{- include "sogo.config" . }}
|
{{- include "sogo.config" . }}
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ maintainers:
|
|||||||
name: common
|
name: common
|
||||||
sources: null
|
sources: null
|
||||||
type: library
|
type: library
|
||||||
version: 8.3.1
|
version: 8.3.2
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
Main entrypoint for the common library chart. It will render all underlying templates based on the provided values.
|
Main entrypoint for the common library chart. It will render all underlying templates based on the provided values.
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "common.all" -}}
|
{{- define "common.all" -}}
|
||||||
{{- /* Merge the local chart values and the common chart defaults */ -}}
|
{{- /* Generate chart and dependency values */ -}}
|
||||||
{{- include "common.values.setup" . }}
|
{{- include "common.setup" . }}
|
||||||
|
|
||||||
{{- /* Enable code-server add-on if required */ -}}
|
{{- /* Enable code-server add-on if required */ -}}
|
||||||
{{- if .Values.addons.codeserver.enabled }}
|
{{- 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 */ -}}
|
{{- /* Build the templates */ -}}
|
||||||
{{- include "common.pvc" . }}
|
{{- include "common.pvc" . }}
|
||||||
|
|
||||||
{{- /* Autogenerate postgresql passwords if needed */ -}}
|
|
||||||
{{- include "common.dependencies.postgresql.injector" . }}
|
|
||||||
|
|
||||||
{{- if .Values.serviceAccount.create -}}
|
{{- if .Values.serviceAccount.create -}}
|
||||||
{{- include "common.serviceAccount" . }}
|
{{- include "common.serviceAccount" . }}
|
||||||
{{- end -}}
|
{{- 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 */}}
|
{{/* Merge the local chart values and the common chart defaults */}}
|
||||||
{{- define "common.values.setup" -}}
|
{{- define "common.values" -}}
|
||||||
{{- if .Values.common -}}
|
{{- if .Values.common -}}
|
||||||
{{- $defaultValues := deepCopy .Values.common -}}
|
{{- $defaultValues := deepCopy .Values.common -}}
|
||||||
{{- $userValues := deepCopy (omit .Values "common") -}}
|
{{- $userValues := deepCopy (omit .Values "common") -}}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{/* Make sure all variables are set properly */}}
|
{{/* Make sure all variables are set properly */}}
|
||||||
{{- include "common.values.setup" . }}
|
{{- include "common.setup" . }}
|
||||||
|
|
||||||
{{/* Render configmap for authelia */}}
|
{{/* Render configmap for authelia */}}
|
||||||
{{- include "authelia.configmap" . }}
|
{{- include "authelia.configmap" . }}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{/* Make sure all variables are set properly */}}
|
{{/* Make sure all variables are set properly */}}
|
||||||
{{- include "common.values.setup" . }}
|
{{- include "common.setup" . }}
|
||||||
|
|
||||||
{{/* Render the templates */}}
|
{{/* Render the templates */}}
|
||||||
{{ include "common.all" . }}
|
{{ include "common.all" . }}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{/* Make sure all variables are set properly */}}
|
{{/* Make sure all variables are set properly */}}
|
||||||
{{- include "common.values.setup" . }}
|
{{- include "common.setup" . }}
|
||||||
|
|
||||||
{{/* Render the templates */}}
|
{{/* Render the templates */}}
|
||||||
{{ include "common.all" . }}
|
{{ include "common.all" . }}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{/* Make sure all variables are set properly */}}
|
{{/* Make sure all variables are set properly */}}
|
||||||
{{- include "common.values.setup" . }}
|
{{- include "common.setup" . }}
|
||||||
|
|
||||||
{{/* Render secrets for gitea */}}
|
{{/* Render secrets for gitea */}}
|
||||||
{{- include "gitea.secrets" . }}
|
{{- include "gitea.secrets" . }}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{/* Make sure all variables are set properly */}}
|
{{/* Make sure all variables are set properly */}}
|
||||||
{{- include "common.values.setup" . }}
|
{{- include "common.setup" . }}
|
||||||
|
|
||||||
|
|
||||||
{{/* Render configmap for nextcloud */}}
|
{{/* Render configmap for nextcloud */}}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{/* Make sure all variables are set properly */}}
|
{{/* Make sure all variables are set properly */}}
|
||||||
{{- include "common.values.setup" . }}
|
{{- include "common.setup" . }}
|
||||||
|
|
||||||
{{/* Render the templates */}}
|
{{/* Render the templates */}}
|
||||||
{{ include "common.all" . }}
|
{{ include "common.all" . }}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{/* Make sure all variables are set properly */}}
|
{{/* Make sure all variables are set properly */}}
|
||||||
{{- include "common.values.setup" . }}
|
{{- include "common.setup" . }}
|
||||||
|
|
||||||
{{/* Append the configMap volume to the volumes */}}
|
{{/* Append the configMap volume to the volumes */}}
|
||||||
{{- define "mosquitto.configVolume" -}}
|
{{- define "mosquitto.configVolume" -}}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{/* Make sure all variables are set properly */}}
|
{{/* Make sure all variables are set properly */}}
|
||||||
{{- include "common.values.setup" . }}
|
{{- include "common.setup" . }}
|
||||||
|
|
||||||
{{/* Render configmap for nextcloud */}}
|
{{/* Render configmap for nextcloud */}}
|
||||||
{{- include "nextcloud.configmap" . }}
|
{{- include "nextcloud.configmap" . }}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{/* Make sure all variables are set properly */}}
|
{{/* Make sure all variables are set properly */}}
|
||||||
{{- include "common.values.setup" . }}
|
{{- include "common.setup" . }}
|
||||||
|
|
||||||
{{/* Render the templates */}}
|
{{/* Render the templates */}}
|
||||||
{{ include "common.all" . }}
|
{{ include "common.all" . }}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{/* Make sure all variables are set properly */}}
|
{{/* Make sure all variables are set properly */}}
|
||||||
{{- include "common.values.setup" . }}
|
{{- include "common.setup" . }}
|
||||||
|
|
||||||
{{/* Render configmap for pihole */}}
|
{{/* Render configmap for pihole */}}
|
||||||
{{- include "pihole.configmap" . }}
|
{{- include "pihole.configmap" . }}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{/* Make sure all variables are set properly */}}
|
{{/* Make sure all variables are set properly */}}
|
||||||
{{- include "common.values.setup" . }}
|
{{- include "common.setup" . }}
|
||||||
|
|
||||||
{{- if .Values.metrics }}
|
{{- if .Values.metrics }}
|
||||||
{{- if .Values.metrics.prometheus }}
|
{{- if .Values.metrics.prometheus }}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{/* Make sure all variables are set properly */}}
|
{{/* Make sure all variables are set properly */}}
|
||||||
{{- include "common.values.setup" . }}
|
{{- include "common.setup" . }}
|
||||||
|
|
||||||
|
|
||||||
{{/* Render configmap for vaultwarden */}}
|
{{/* Render configmap for vaultwarden */}}
|
||||||
|
|||||||
Reference in New Issue
Block a user