File tree Expand file tree Collapse file tree 4 files changed +34
-1
lines changed
Expand file tree Collapse file tree 4 files changed +34
-1
lines changed Original file line number Diff line number Diff line change 11apiVersion : v1
22name : pgdog
3- version : v0.32
3+ version : v0.33
44appVersion : " 0.1.22"
Original file line number Diff line number Diff line change @@ -188,6 +188,15 @@ data:
188188 {{- end}}
189189 {{- end }}
190190
191+ {{- range .Values.omnishardedTables }}
192+ [[omnisharded_tables]]
193+ database = {{ .database | quote }}
194+ {{- if .sticky }}
195+ sticky = {{ .sticky }}
196+ {{- end }}
197+ tables = {{ .tables | toToml }}
198+ {{- end }}
199+
191200 {{- if or (hasKey .Values "tcpKeepalive") (hasKey .Values "tcpTime") (hasKey .Values "tcpInterval") (hasKey .Values "tcpRetries") }}
192201 [tcp]
193202 {{- if hasKey .Values "tcpKeepalives" }}
Original file line number Diff line number Diff line change @@ -29,6 +29,17 @@ mirrors:
2929 - sourceDb : primary
3030 destinationDb : replica
3131
32+ omnishardedTables :
33+ - database : primary
34+ sticky : true
35+ tables :
36+ - pg_class
37+ - pg_attribute
38+ - pg_attrdef
39+ - pg_index
40+ - pg_constraint
41+ - pg_namespace
42+
3243podAnnotations :
3344 prometheus.io/scrape : " true"
3445
Original file line number Diff line number Diff line change @@ -150,6 +150,19 @@ shardedTables: []
150150# shard: 1
151151shardedMappings : []
152152
153+ # omnishardedTables contains the list of omnisharded table entries in pgdog.toml
154+ # Each entry requires: database and tables; sticky is optional
155+ # Example:
156+ # omnishardedTables:
157+ # - database: "prod"
158+ # sticky: true
159+ # tables:
160+ # - "pg_class"
161+ # - "pg_attribute"
162+ # - "pg_attrdef"
163+ # - "pg_index"
164+ omnishardedTables : []
165+
153166# service contains the Kubernetes service configuration
154167service :
155168 # type specifies the type of Kubernetes service
You can’t perform that action at this time.
0 commit comments