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

[DPE-2278] Add connection string to uri field in schema #160

Merged
merged 1 commit into from
Jul 11, 2024
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
1 change: 1 addition & 0 deletions interfaces/postgresql_client/v0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ If any side, Provider or Requirer doesn't support Juju Secrets, sensitive inform
- Is expected to expose the Juju Secrets URI to the credentials through the `secret-user` field of the data bag.
- Is expected to provide the `endpoints` field with the address of Primary, which can be used for Read/Write queries.
- Is expected to provide the `database` field with the database that was actually created.
- Is expected to provide the `uris` field with the connection string, in libpq's URI format, which can be used for direct connection to the db.
- Is expected to provide optional `read-only-endpoints` field with a comma-separated list of hosts or one Kubernetes Service, which can be used for Read-only queries.
- Is expected to provide the `version` field whenever database charm wants to communicate its database version.
- Is expected to provide the CA chain in the `tls-ca` field of a Juju Secret, whenever the provider has TLS enabled (such as using the [TLS Certificates Operator](https://github.com/canonical/tls-certificates-operator)).
Expand Down
10 changes: 10 additions & 0 deletions interfaces/postgresql_client/v0/schemas/provider.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@
"unit-1:port,unit-2:port"
]
},
"uris": {
"$id": "#/properties/uris",
"title": "URIs",
"description": "A connection string in URI format used to connect to the database",
"type": "string",
"default": "",
"examples": [
"postgresql://user:pass@host-1:port,host-2:port/mydb"
]
},
"read-only-endpoints": {
"$id": "#/properties/read-only-endpoints",
"title": "Read-Only Database Endpoints",
Expand Down
Loading