Skip to content

Commit

Permalink
fix(pg): use 2 instances in dev (#447)
Browse files Browse the repository at this point in the history
Co-authored-by: Matéo Mévollon <[email protected]>
  • Loading branch information
Julien Bouquillon and matmut7 authored Dec 5, 2023
1 parent fcf034d commit 1e0f3e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/kontinuous/tests/__snapshots__/extends-ovh.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion plugins/fabrique/charts/pg/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1e0f3e8

Please sign in to comment.