Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
name: pgdog
version: v0.32
version: v0.33
appVersion: "0.1.22"
9 changes: 9 additions & 0 deletions templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }}
Expand Down
11 changes: 11 additions & 0 deletions test/values-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
13 changes: 13 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading