From 1e0f3e86d248e4fcff69ac4e4bfda4a7983c1de7 Mon Sep 17 00:00:00 2001 From: Julien Bouquillon Date: Tue, 5 Dec 2023 17:54:26 +0100 Subject: [PATCH] fix(pg): use 2 instances in dev (#447) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Matéo Mévollon --- packages/kontinuous/tests/__snapshots__/extends-ovh.dev.yaml | 4 ++-- .../tests/__snapshots__/override-env-default.dev.yaml | 2 +- plugins/fabrique/charts/pg/values.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/kontinuous/tests/__snapshots__/extends-ovh.dev.yaml b/packages/kontinuous/tests/__snapshots__/extends-ovh.dev.yaml index cc208f5741..a508ab1af5 100644 --- a/packages/kontinuous/tests/__snapshots__/extends-ovh.dev.yaml +++ b/packages/kontinuous/tests/__snapshots__/extends-ovh.dev.yaml @@ -588,7 +588,7 @@ metadata: kontinuous/plugin.log: \\"false\\" namespace: test-extends-ovh-feature-branch-1 spec: - instances: 1 + instances: 2 imageName: ghcr.io/cloudnative-pg/postgis:14 imagePullPolicy: IfNotPresent resources: @@ -663,7 +663,7 @@ metadata: kontinuous/plugin.log: \\"false\\" namespace: test-extends-ovh-feature-branch-1 spec: - instances: 1 + instances: 2 imageName: ghcr.io/cloudnative-pg/postgis:14 imagePullPolicy: IfNotPresent resources: diff --git a/packages/kontinuous/tests/__snapshots__/override-env-default.dev.yaml b/packages/kontinuous/tests/__snapshots__/override-env-default.dev.yaml index dbfd8d5f7e..1a00499736 100644 --- a/packages/kontinuous/tests/__snapshots__/override-env-default.dev.yaml +++ b/packages/kontinuous/tests/__snapshots__/override-env-default.dev.yaml @@ -345,7 +345,7 @@ metadata: kontinuous/plugin.log: \\"false\\" namespace: test-override-env-default-feature-branch-1 spec: - instances: 1 + instances: 2 imageName: ghcr.io/cloudnative-pg/postgis:14 imagePullPolicy: IfNotPresent resources: diff --git a/plugins/fabrique/charts/pg/values.yaml b/plugins/fabrique/charts/pg/values.yaml index 20c80c31a6..713769f4cc 100644 --- a/plugins/fabrique/charts/pg/values.yaml +++ b/plugins/fabrique/charts/pg/values.yaml @@ -20,7 +20,7 @@ cnpg-cluster: - {{ .Values.kontinuous.parentChart }}.jobs-pg ~tpl~dbOwner: "{{ .Values.global.pgUser }}" ~tpl~dbName: "{{ .Values.global.pgDatabase }}" - ~tpl~instances: "{{ or (and .Values.Parent._ProjectValues (index .Values.Parent._ProjectValues `cnpg-cluster`).instances) ((or .Values.global.isProd .Values.global.isPreProd) | ternary `3` `1`) }}" + ~tpl~instances: "{{ or (and .Values.Parent._ProjectValues (index .Values.Parent._ProjectValues `cnpg-cluster`).instances) ((or .Values.global.isProd .Values.global.isPreProd) | ternary `3` `2`) }}" postgresqlParameters: TimeZone: "Europe/Paris" pg_stat_statements.max: "10000"