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

{{/* Merge the templates with Values  */}}
{{- $_ := mustMergeOverwrite .Values (include "minio.configuration" $ | fromYaml) -}}

{{- $_ := mustMergeOverwrite .Values (include "minio.workload" $ | fromYaml) -}}
{{- if .Values.minioLogging.logsearch.enabled -}}
  {{- $_ := mustMergeOverwrite .Values (include "logsearch.workload" $ | fromYaml) -}}
  {{- $_ := mustMergeOverwrite .Values (include "postgres.workload" $ | fromYaml) -}}
{{- end -}}

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

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