PgBouncer K8s
- Canonical
- Databases
Channel | Revision | Published | Runs on |
---|---|---|---|
1/stable | 269 | 11 Sep 2024 | |
1/stable | 268 | 11 Sep 2024 | |
1/candidate | 269 | 09 Sep 2024 | |
1/candidate | 268 | 09 Sep 2024 | |
1/beta | 269 | 09 Sep 2024 | |
1/beta | 268 | 09 Sep 2024 | |
1/edge | 348 | Yesterday | |
1/edge | 347 | Yesterday |
juju deploy pgbouncer-k8s --channel 1/stable
Deploy Kubernetes operators easily with Juju, the Universal Operator Lifecycle Manager. Need a Kubernetes cluster? Install MicroK8s to create a full CNCF-certified Kubernetes system in under 60 seconds.
Platform:
charms.pgbouncer_k8s.v0.pgb
-
- Last updated 16 Oct 2024
- Revision Library version 0.10
PgBouncer Charm Library.
This charm library provides common pgbouncer-specific features for the pgbouncer machine and Kubernetes charms, including automatic config management using the PgbConfig object, and the default config for pgbouncer.
Index
def parse_kv_string_to_dict(string: str)
Parses space-separated key=value pairs into a python dict.
Arguments
a string containing a set of key=value pairs, joined with = characters and separated with spaces
Returns
A dict containing the key-value pairs represented as strings.
Description
TODO this could make use of pgconnstr, but that requires that this charm lib has a dependency.
def parse_dict_to_kv_string(dictionary)
Helper function to encode a python dict into a pgbouncer-readable string.
Arguments
A dict containing the key-value pairs represented as strings.
Description
TODO this could make use of pgconnstr, but that requires that this charm lib has a dependency.
def generate_password()
Generates a secure password of alphanumeric characters.
Returns
A random 24-character string of letters and numbers.
Description
Passwords are alphanumeric only, to ensure compatibility with the userlist.txt format - specifically, spaces and double quotes may interfere with parsing this file.
def
get_hashed_password(
username: str,
password: str
)
Description
Creates an md5 hashed password for the given user, in the format postgresql expects. None