From a1dd5725a7fd0bcf091a29d48286fcf7cb473ee4 Mon Sep 17 00:00:00 2001 From: Javier Torres Date: Tue, 4 Jun 2024 13:54:07 +0200 Subject: [PATCH] Support replication in charts (#2215) --- charts/nucliadb_shared/templates/nucliadb.cm.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/charts/nucliadb_shared/templates/nucliadb.cm.yaml b/charts/nucliadb_shared/templates/nucliadb.cm.yaml index de68efb3ff..4f89826a3f 100644 --- a/charts/nucliadb_shared/templates/nucliadb.cm.yaml +++ b/charts/nucliadb_shared/templates/nucliadb.cm.yaml @@ -57,14 +57,14 @@ data: NODE_WRITER_PORT: {{ .Values.nucliadb.node_writer_port | quote }} NODE_READER_PORT: {{ .Values.nucliadb.node_reader_port | quote }} CACHE_PUBSUB_NATS_URL: {{ toJson .Values.cache.cache_pubsub_nats_url |quote }} -{{- with .Values.cache.cache_pubsub_nats_auth }} +{{- with .Values.cache.cache_pubsub_nats_auth }} CACHE_PUBSUB_NATS_AUTH: {{ . }} -{{- end}} +{{- end}} {{- with .Values.transaction.transaction_jetstream_auth }} TRANSACTION_JETSTREAM_AUTH: {{ . }} {{- end}} TRANSACTION_JETSTREAM_SERVERS: {{ toJson .Values.transaction.transaction_jetstream_servers | quote }} -{{- with .Values.indexing.index_jetstream_auth }} +{{- with .Values.indexing.index_jetstream_auth }} INDEX_JETSTREAM_AUTH: {{ . }} {{- end}} INDEX_JETSTREAM_SERVERS: {{ toJson .Values.indexing.index_jetstream_servers | quote }} @@ -73,13 +73,16 @@ data: DRIVER_REDIS_URL: {{ .Values.maindb.driver_redis_url }} {{- else if eq .Values.maindb.driver "tikv" }} DRIVER_TIKV_URL: {{ toJson .Values.maindb.driver_tikv_url | quote }} +{{- if .Values.maindb.driver_tikv_replication_pg_url }} + DRIVER_TIKV_REPLICATION_PG_URL: {{ .Values.maindb.driver_tikv_replication_pg_url }} +{{- end }} {{- end }} AUDIT_DRIVER: {{ .Values.audit.driver }} AUDIT_JETSTREAM_TARGET: {{ .Values.audit.audit_jetstream_target }} AUDIT_JETSTREAM_SERVERS: {{ toJson .Values.audit.audit_jetstream_servers | quote }} -{{- with .Values.audit.audit_jetstream_auth }} +{{- with .Values.audit.audit_jetstream_auth }} AUDIT_JETSTREAM_AUTH: {{ . }} -{{- end}} +{{- end}} AUDIT_PARTITIONS: {{ .Values.audit.audit_partitions | quote }} AUDIT_HASH_SEED: {{ .Values.audit.audit_hash_seed | quote }} JAEGER_AGENT_HOST: "{{ .Values.tracing.jaeger_agent_host }}"