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

{{/* Merge the templates with Values */}}
{{- $_ := mustMergeOverwrite .Values (include "wordpress.configuration" $ | fromYaml) -}}
{{- $_ := mustMergeOverwrite .Values (include "wordpress.persistence" $ | fromYaml) -}}
{{- $_ := mustMergeOverwrite .Values (include "wordpress.service" $ | fromYaml) -}}
{{- $_ := mustMergeOverwrite .Values (include "wordpress.workload" $ | fromYaml) -}}
{{- $_ := mustMergeOverwrite .Values (include "wordpress.mariadb.workload" $ | fromYaml) -}}
{{- if .Values.wpConfig.enableCronJob -}}
  {{- $_ := mustMergeOverwrite .Values (include "wordpress.cron" $ | fromYaml) -}}
{{- end -}}

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

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