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-3049] templated config #186

Merged
merged 61 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from 55 commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
fcd5ba5
Generate templated cfg side by side
dragomirp Jan 23, 2024
fc39f5e
Merge branch 'main' into dpe-3049-templated-config
dragomirp Jan 23, 2024
2841636
Templated config WIP
dragomirp Jan 23, 2024
ca23974
Disable unit tests
dragomirp Jan 23, 2024
c263581
Legacy templating WIP
dragomirp Jan 23, 2024
bf52697
Fix TLS
dragomirp Jan 23, 2024
a58f334
Legacy admins
dragomirp Jan 23, 2024
496363b
Cleanup
dragomirp Jan 23, 2024
c658f3b
Remove update method
dragomirp Jan 24, 2024
4591d3e
Cleanup
dragomirp Jan 24, 2024
4fbbeea
Merge branch 'main' into dpe-3049-templated-config
dragomirp Jan 24, 2024
d501205
Linting
dragomirp Jan 24, 2024
34fdbd7
Restart on peer change
dragomirp Jan 24, 2024
c3c8f13
Full restart on peer change
dragomirp Jan 24, 2024
f0f945b
Revert "Full restart on peer change"
dragomirp Jan 24, 2024
8f0a651
Avoid early finalising of the new interface
dragomirp Jan 24, 2024
2118cd8
Try to suppress non leader warnings
dragomirp Jan 25, 2024
ae3e9a1
Fix port change
dragomirp Jan 25, 2024
6cb7a60
Redundant rerener
dragomirp Jan 25, 2024
d82626e
Merge branch 'main' into dpe-3049-templated-config
dragomirp Jan 29, 2024
a11417c
Merge branch 'main' into dpe-3049-templated-config
dragomirp Jan 29, 2024
53951bb
Merge branch 'main' into dpe-3049-templated-config
dragomirp Feb 5, 2024
9cff0f2
Unify check_backend
dragomirp Feb 6, 2024
5e6e8a4
Disable constant defers
dragomirp Feb 6, 2024
148e6af
Merge branch 'main' into dpe-3049-templated-config
dragomirp Feb 6, 2024
1821b03
Defer instead of ignore
dragomirp Feb 6, 2024
98e57bd
Don't wait for retries
dragomirp Feb 6, 2024
a974c09
Filter database
dragomirp Feb 6, 2024
f852a19
[charm] Update charm dependencies
renovate[bot] Feb 7, 2024
66698e3
Remove flag
dragomirp Feb 7, 2024
6427c8f
Reset flag
dragomirp Feb 7, 2024
12cc43a
Defer _on_change
dragomirp Feb 7, 2024
3fff3ba
Filter out new relation
dragomirp Feb 7, 2024
a397564
Put mapping in peer data
dragomirp Feb 8, 2024
79606f9
Str rel ids
dragomirp Feb 8, 2024
1cf18eb
Update read only endpoints on peer drift
dragomirp Feb 8, 2024
0220e21
Merge branch 'main' into dpe-3049-templated-config
dragomirp Feb 8, 2024
27b9698
Only one db per rel
dragomirp Feb 8, 2024
8a6da31
Missed dynamic params
dragomirp Feb 8, 2024
d7b5107
Suppress log error
dragomirp Feb 8, 2024
711aa52
Restore auth file on pebble ready
dragomirp Feb 8, 2024
ff8c7ea
Don't read auth file
dragomirp Feb 8, 2024
3a369a5
Removing PgbConfig
dragomirp Feb 9, 2024
500a33b
Reenable only working tests
dragomirp Feb 9, 2024
a2d7548
Add tests WIP
dragomirp Feb 9, 2024
826c597
Merge remote-tracking branch 'origin/renovate/charm-dependencies' int…
dragomirp Feb 9, 2024
3f33744
Don't render the dict
dragomirp Feb 9, 2024
2a80cda
Upgrade tweaks
dragomirp Feb 9, 2024
57c6d4c
Restoring unit tests
dragomirp Feb 10, 2024
19b13e1
Try not to rerender on legacy rel change
dragomirp Feb 10, 2024
b40fcd1
Restore rerender on legacy rel change
dragomirp Feb 10, 2024
be16f35
Restoring tests
dragomirp Feb 10, 2024
6928cf3
Container check in _on_config_change
dragomirp Feb 10, 2024
6d05a31
Dead code
dragomirp Feb 10, 2024
dad32fd
Unit tests
dragomirp Feb 12, 2024
e28fd8c
Merge branch 'main' into dpe-3049-templated-config
dragomirp Feb 13, 2024
3620aa4
Bump coveage
dragomirp Feb 13, 2024
4426e8f
Don't raise on blocked
dragomirp Feb 14, 2024
b5f1623
Merge branch 'main' into dpe-3049-templated-config
dragomirp Feb 14, 2024
dac81ad
Switch status
dragomirp Feb 14, 2024
3a2dbbc
Don't update libjuju
dragomirp Feb 14, 2024
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
385 changes: 2 additions & 383 deletions lib/charms/pgbouncer_k8s/v0/pgb.py
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to salvage anything else from here?

Large diffs are not rendered by default.

113 changes: 58 additions & 55 deletions poetry.lock

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ repository = "https://github.com/canonical/pgbouncer-k8s-operator"

[tool.poetry.dependencies]
python = "^3.8.10"
ops = "^2.9.0"
cryptography = "^42.0.1"
ops = "^2.10.0"
cryptography = "^42.0.2"
jsonschema = "^4.21.1"
tenacity = "^8.2.3"
cosl = "^0.0.7"
poetry-core = "^1.8.1"
lightkube = "^0.15.0"
cosl = "^0.0.8"
poetry-core = "^1.9.0"
lightkube = "^0.15.1"
lightkube-models = "^1.29.0.6"
pydantic = "^1.10.14"
psycopg2 = "^2.9.9"
psycopg = {extras = ["c"], version = "^3.1.17"}
psycopg = {extras = ["c"], version = "^3.1.18"}

[tool.poetry.group.charm-libs.dependencies]
# data_platform_libs/v0/data_interfaces.py
Expand Down
Loading
Loading