Skip to content
Snippets Groups Projects

indexer_storage: Make template multi-instance & deploy read-only instance to production

Merged Antoine R. Dumont requested to merge migrate-indexers-to-prod into staging
Files
11
{{/*
* Create an storage configmap for service .serviceType
*/}}
{{ define "swh.indexer.storage.configmap" }}
---
apiVersion: v1
kind: ConfigMap
metadata:
namespace: {{ .Values.namespace }}
name: {{ .serviceType }}-configuration-template
data:
config.yml.template: |
{{- include "swh.postgresql" (dict "serviceType" "indexer_storage"
"configurationRef" .configuration.indexerStorageConfigurationRef
"Values" .Values) | nindent 4 -}}
{{- include "swh.journal.configuration" (dict "serviceType" "journal_writer"
"configurationRef" .configuration.journalWriterConfigurationRef
"Values" .Values) | nindent 4 -}}
{{- end -}}
Loading