From f95acdab23e69379001fa213e4c7769dac77a246 Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Fri, 16 Jan 2026 17:12:32 -0800 Subject: [PATCH 1/2] Omnisharded tables --- templates/config.yaml | 9 +++++++++ test/values-full.yaml | 11 +++++++++++ values.yaml | 13 +++++++++++++ 3 files changed, 33 insertions(+) diff --git a/templates/config.yaml b/templates/config.yaml index 14b0cf2..b6bb811 100644 --- a/templates/config.yaml +++ b/templates/config.yaml @@ -188,6 +188,15 @@ data: {{- end}} {{- end }} + {{- range .Values.omnishardedTables }} + [[omnisharded_tables]] + database = {{ .database | quote }} + {{- if .sticky }} + sticky = {{ .sticky }} + {{- end }} + tables = {{ .tables | toToml }} + {{- end }} + {{- if or (hasKey .Values "tcpKeepalive") (hasKey .Values "tcpTime") (hasKey .Values "tcpInterval") (hasKey .Values "tcpRetries") }} [tcp] {{- if hasKey .Values "tcpKeepalives" }} diff --git a/test/values-full.yaml b/test/values-full.yaml index 26064b2..5405e38 100644 --- a/test/values-full.yaml +++ b/test/values-full.yaml @@ -29,6 +29,17 @@ mirrors: - sourceDb: primary destinationDb: replica +omnishardedTables: + - database: primary + sticky: true + tables: + - pg_class + - pg_attribute + - pg_attrdef + - pg_index + - pg_constraint + - pg_namespace + podAnnotations: prometheus.io/scrape: "true" diff --git a/values.yaml b/values.yaml index 2b04422..e83f3b1 100644 --- a/values.yaml +++ b/values.yaml @@ -150,6 +150,19 @@ shardedTables: [] # shard: 1 shardedMappings: [] +# omnishardedTables contains the list of omnisharded table entries in pgdog.toml +# Each entry requires: database and tables; sticky is optional +# Example: +# omnishardedTables: +# - database: "prod" +# sticky: true +# tables: +# - "pg_class" +# - "pg_attribute" +# - "pg_attrdef" +# - "pg_index" +omnishardedTables: [] + # service contains the Kubernetes service configuration service: # type specifies the type of Kubernetes service From 87cf0421f8d74de8b565e4807d3930cddafe08be Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Fri, 16 Jan 2026 17:12:46 -0800 Subject: [PATCH 2/2] save --- Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chart.yaml b/Chart.yaml index 1717fef..6f13f4e 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v1 name: pgdog -version: v0.32 +version: v0.33 appVersion: "0.1.22"