Add component metadata YAML for Postgres configuration (#2804)
Signed-off-by: Yash Nisar <yashnisar@microsoft.com> Signed-off-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com> Co-authored-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com> Co-authored-by: Bernd Verst <github@bernd.dev>
This commit is contained in:
parent
1df2980aee
commit
1e3458c478
|
@ -0,0 +1,35 @@
|
||||||
|
# yaml-language-server: $schema=../../component-metadata-schema.json
|
||||||
|
schemaVersion: v1
|
||||||
|
type: configuration
|
||||||
|
name: postgres
|
||||||
|
version: v1
|
||||||
|
status: alpha
|
||||||
|
title: "Postgres"
|
||||||
|
urls:
|
||||||
|
- title: Reference
|
||||||
|
url: https://docs.dapr.io/reference/components-reference/supported-configuration-stores/postgres-configuration-store/
|
||||||
|
capabilities: []
|
||||||
|
authenticationProfiles:
|
||||||
|
- title: "Connection string"
|
||||||
|
description: "Authenticate using a Connection String."
|
||||||
|
metadata:
|
||||||
|
- name: connectionString
|
||||||
|
required: true
|
||||||
|
sensitive: true
|
||||||
|
description: |
|
||||||
|
The connection string for PostgreSQL, as a URL or DSN.
|
||||||
|
Note: the default value for `pool_max_conns` is 5.
|
||||||
|
example: "host=localhost user=postgres password=example port=5432 connect_timeout=10 database=dapr_test pool_max_conns=10"
|
||||||
|
type: string
|
||||||
|
metadata:
|
||||||
|
- name: table
|
||||||
|
required: true
|
||||||
|
description: The table name for configuration information.
|
||||||
|
example: "configTable"
|
||||||
|
type: string
|
||||||
|
- name: connMaxIdleTime
|
||||||
|
required: false
|
||||||
|
description: The maximum amount of time a connection may be idle.
|
||||||
|
example: "15s"
|
||||||
|
default: "30s"
|
||||||
|
type: duration
|
Loading…
Reference in New Issue