From e2e7bff5bd41dc02687a8e531343d0c2837fbb85 Mon Sep 17 00:00:00 2001 From: Scott Jacobsen Date: Thu, 5 Feb 2026 15:09:34 -0700 Subject: [PATCH] Support `primary_key` rewriting Add support for the `primary_key` rewriting option. By default disable this feature using `"ignore"` --- Chart.yaml | 2 +- templates/config.yaml | 1 + test/values-rewrite.yaml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Chart.yaml b/Chart.yaml index b1ccc7c..b3a435f 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v1 name: pgdog -version: v0.41 +version: v0.42 appVersion: "0.1.26" diff --git a/templates/config.yaml b/templates/config.yaml index 696a168..c61a71f 100644 --- a/templates/config.yaml +++ b/templates/config.yaml @@ -269,4 +269,5 @@ data: enabled = {{ .Values.rewrite.enabled | default "false" }} shard_key = {{ .Values.rewrite.shardKey | default "error" | quote }} split_inserts = {{ .Values.rewrite.splitInserts | default "error" | quote }} + primary_key = {{ .Values.rewrite.primaryKey | default "ignore" | quote }} {{- end }} diff --git a/test/values-rewrite.yaml b/test/values-rewrite.yaml index 513db3b..698f035 100644 --- a/test/values-rewrite.yaml +++ b/test/values-rewrite.yaml @@ -3,6 +3,7 @@ rewrite: enabled: true shardKey: "rewrite" splitInserts: "ignore" + primary_key: "rewrite" # Basic database config for testing rewrite databases: