Skip to content

Commit 83ee1d4

Browse files
authored
[DPE-10062] Port Patroni/cluster code to single kernel (#1788)
* Redo * Disable unit tests * Test without psycopg2 * Pass refresh * Double render * Wrong dir setup * Cleanup * Unit tests WIP * Reenable most unit tests * Switch to yaml rendering * Enable all unit tests * Sync lib * Don't pull client on init * Spaced ips * Move cluster exceptions to kernel * Trace blocked message * Trace blocked * Reduce timeout * Sync lib * Sync lib * Lib cleanup * Switch to released lib
1 parent b99b84a commit 83ee1d4

17 files changed

Lines changed: 668 additions & 2180 deletions

charmcraft.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ parts:
5151
source: .
5252
after:
5353
- poetry-deps
54-
poetry-export-extra-args: ['--only', 'main,charm-libs,single-kernel']
54+
poetry-export-extra-args: ['--only', 'main,charm-libs']
5555
build-packages:
5656
- libffi-dev # Needed to build Python dependencies with Rust from source
5757
- libssl-dev # Needed to build Python dependencies with Rust from source

poetry.lock

Lines changed: 168 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ charm-refresh = "^3.1.0.2"
2121
charmlibs-snap = "^1.0.1"
2222
charmlibs-systemd = "^1.0.0.post0"
2323
charmlibs-interfaces-tls-certificates = "^1.8.3"
24-
25-
[tool.poetry.group.single-kernel.dependencies]
26-
postgresql-charms-single-kernel = "16.3.0"
24+
postgresql-charms-single-kernel = {extras = ["postgresql", "vm"], version = "16.3.1"}
2725

2826
[tool.poetry.group.charm-libs.dependencies]
2927
# data_platform_libs/v0/data_interfaces.py
@@ -78,6 +76,7 @@ allure-pytest-default-results = "^0.1.4"
7876
tomli = "^2.4.1"
7977
tomli-w = "^1.2.0"
8078
pysyncobj = "*"
79+
postgresql-charms-single-kernel = "*"
8180

8281
[tool.poetry.group.build-refresh-version]
8382
optional = true

0 commit comments

Comments
 (0)