Skip to content

Commit

Permalink
fix: cnpg acid consistency compliance (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo authored Sep 19, 2023
1 parent 93f1b96 commit dde9610
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions packages/kontinuous/tests/__snapshots__/extends-ovh.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -770,8 +770,8 @@ spec:
name: fabrique-prod-backups-access-key
wal:
compression: gzip
minSyncReplicas: 0
maxSyncReplicas: 0
minSyncReplicas: 1
maxSyncReplicas: 1
postgresql:
parameters:
TimeZone: Europe/Paris
Expand Down Expand Up @@ -852,8 +852,8 @@ spec:
name: fabrique-prod-backups-access-key
wal:
compression: gzip
minSyncReplicas: 0
maxSyncReplicas: 0
minSyncReplicas: 1
maxSyncReplicas: 1
postgresql:
parameters:
TimeZone: Europe/Paris
Expand Down
4 changes: 2 additions & 2 deletions packages/kontinuous/tests/__snapshots__/pg.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -530,8 +530,8 @@ spec:
name: fabrique-prod-backups-access-key
wal:
compression: gzip
minSyncReplicas: 0
maxSyncReplicas: 0
minSyncReplicas: 1
maxSyncReplicas: 1
postgresql:
parameters:
TimeZone: Europe/Paris
Expand Down
2 changes: 2 additions & 0 deletions plugins/fabrique/charts/pg/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ recovery:

cnpg-cluster:
enabled: true
~tpl~minSyncReplicas: "{{ or (and .Values.Parent._ProjectValues (index .Values.Parent._ProjectValues `cnpg-cluster`).minSyncReplicas) ((or .Values.global.isProd .Values.global.isPreProd) | ternary `1` `0`) }}"
~tpl~maxSyncReplicas: "{{ or (and .Values.Parent._ProjectValues (index .Values.Parent._ProjectValues `cnpg-cluster`).maxSyncReplicas) ((or .Values.global.isProd .Values.global.isPreProd) | ternary `1` `0`) }}"
fullnameOverride: test-cluster
~tpl~fullnameOverride: "{{ index .Values.kontinuous.chartContext 2 }}"
~tpl~nameOverride: "{{ index .Values.kontinuous.chartContext 2 }}"
Expand Down

0 comments on commit dde9610

Please sign in to comment.