Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass metadata into get_configuration and subscribe_configuration #117

Closed
blackwood-ra opened this issue Feb 7, 2024 · 1 comment
Closed

Comments

@blackwood-ra
Copy link
Contributor

Currently, there is no metadata argument for the client methods get_configuration and subscribe_configuration. Passing metadata is required when subscribing to config store changes with PostgreSQL.

To reproduce, use the following configstore.yaml component with a configured local instance of PostgreSQL running:

apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
  name: configstore
spec:
  type: configuration.postgresql
  version: v1
  metadata:
    - name: connectionString
      value: host=localhost user=postgres password=[pg_password] port=5432 connect_timeout=10 database=[database_name]
    - name: table
      value: "config_table"

Without including metadata in the subscribe_configuration, an "Invalid Argument" Err is returned with the following message:

failed to subscribe [key] from Configuration store configstore: unable to subscribe to 'config_table'. pgNotifyChannel attribute cannot be empty

@mikeee
Copy link
Member

mikeee commented Mar 14, 2024

Closed by #118

@mikeee mikeee closed this as completed Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants