Skip to content

Commit

Permalink
feat: Add postgres-aggregate backend option to store only aggregate d…
Browse files Browse the repository at this point in the history
…ata (#118)

Co-authored-by: Burak Sekili <[email protected]>
  • Loading branch information
jakub-bochenski and buraksekili authored Oct 10, 2023
1 parent d8e3a77 commit d141426
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/tyk-pump/templates/deployment-pmp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ spec:
secretKeyRef:
name: {{ include "tyk-pump.pg_connection_string_secret_name" . }}
key: {{ include "tyk-pump.pg_connection_string_secret_key" . }}

{{ end }}
{{ if or (has "postgres" .Values.pump.backend) (has "postgres-aggregate" .Values.pump.backend) }}
# SQL Aggregate Pump
- name: TYK_PMP_PUMPS_SQLAGGREGATE_TYPE
value: "sql_aggregate"
Expand Down
2 changes: 1 addition & 1 deletion components/tyk-pump/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ pump:
containerPort: 9090

# backend defines the pumps to be created by default, as an array of string.
# Supported backends are ["mongo", "postgres", "prometheus","hybrid"]
# Supported backends are ["mongo", "postgres", "postgres-aggregate", "prometheus","hybrid"]
# If you would like to use other backends such as ElasticSearch, please
# configure the backend via environment variables.
backend:
Expand Down

0 comments on commit d141426

Please sign in to comment.