{{- include "ix.v1.common.loader.init" . -}}

{{/* Merge the templates with Values */}}
{{- $_ := mustMergeOverwrite .Values (include "vikunja.persistence" $ | fromYaml) -}}
{{- $_ := mustMergeOverwrite .Values (include "vikunja.configuration" $ | fromYaml) -}}
{{- $_ := mustMergeOverwrite .Values (include "vikunja.service" $ | fromYaml) -}}
{{- $_ := mustMergeOverwrite .Values (include "vikunja.redis" $ | fromYaml) -}}
{{- $_ := mustMergeOverwrite .Values (include "vikunja.postgres" $ | fromYaml) -}}
{{- $_ := mustMergeOverwrite .Values (include "vikunja.nginx" $ | fromYaml) -}}
{{- $_ := mustMergeOverwrite .Values (include "vikunja.frontend" $ | fromYaml) -}}
{{- $_ := mustMergeOverwrite .Values (include "vikunja.api" $ | fromYaml) -}}

{{/* Create the configmap for portal manually*/}}
{{- include "vikunja.portal" $ -}}

{{- include "ix.v1.common.loader.apply" . -}}
