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

Merge webhook and patching #353

Open
wants to merge 53 commits into
base: 6/edge
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
9c88b59
use mongodb-k8s removal strategy + move to storage detached
MiaAltieri Oct 14, 2024
fc992f0
patch stateful set
MiaAltieri Oct 15, 2024
1d822c1
update deps
MiaAltieri Oct 16, 2024
f726e56
revert storage detached changes and save for a seperate PR
MiaAltieri Oct 17, 2024
1e09c4e
update unit testss
MiaAltieri Oct 17, 2024
4d41725
update metadata.yaml
MiaAltieri Oct 16, 2024
7f623c6
add infrastructure for starting the service
MiaAltieri Oct 16, 2024
865b1b5
WIP attemping to register webhook to k8s
MiaAltieri Oct 17, 2024
3a9ced3
wip: more fixes
Gu1nness Oct 17, 2024
8a2e72f
wip: code part
Gu1nness Oct 17, 2024
8e61e97
wip: test part
Gu1nness Oct 17, 2024
e7422b6
fix: refacto + post-rebase issues
Gu1nness Oct 17, 2024
45912cf
Merge branch '6/edge' into DPE-5661-safe-drainage
MiaAltieri Oct 17, 2024
f732d9d
move cert generation to an earlier bit
MiaAltieri Oct 17, 2024
8aee132
fix most unit tests, comment out rest
MiaAltieri Oct 17, 2024
5e5a714
Merge branch 'DPE-5661-safe-drainage' into merge-webhook-and-patching
MiaAltieri Oct 17, 2024
450cbb1
add tests for termination period
MiaAltieri Oct 17, 2024
2e8ecf3
fix: certificate name
Gu1nness Oct 17, 2024
38abb09
fix: remove service after removing mutating webhook
Gu1nness Oct 17, 2024
cec9261
wip: more patches
Gu1nness Oct 18, 2024
9de35ff
wip: more patches
Gu1nness Oct 18, 2024
bc5b6d8
wip: more more fixes
Gu1nness Oct 18, 2024
d66afbc
fix: unittest
Gu1nness Oct 18, 2024
bd3a9d1
fix: specify match condition for sharded cluster
Gu1nness Oct 18, 2024
7b4e84d
fix: better service
Gu1nness Oct 18, 2024
c888b33
fix: log
Gu1nness Oct 18, 2024
3277f89
fix: resources
Gu1nness Oct 18, 2024
f0a7359
fix: resources
Gu1nness Oct 18, 2024
a708b69
fix: charm
Gu1nness Oct 18, 2024
2fa18f9
fix: test
Gu1nness Oct 18, 2024
5ea2f48
fix: remove defer event here
Gu1nness Oct 18, 2024
948db3f
fix: use sts as service owner
Gu1nness Oct 21, 2024
fe5209a
Merge remote-tracking branch 'origin/6/edge' into merge-webhook-and-p…
Gu1nness Oct 21, 2024
015d28c
fix: update idle_period at start
Gu1nness Oct 21, 2024
8d5b405
fix: more fixes
Gu1nness Oct 21, 2024
3bbf4be
fix: more fixes
Gu1nness Oct 21, 2024
92f7013
fix: more fixes
Gu1nness Oct 21, 2024
10e2ac7
fix: remove debug log
Gu1nness Oct 21, 2024
830cda5
Merge remote-tracking branch 'origin/6/edge' into merge-webhook-and-p…
Gu1nness Oct 22, 2024
66a9078
fix: test use right channel
Gu1nness Oct 22, 2024
1bb6eff
test: faster tests
Gu1nness Oct 22, 2024
9a928af
test: faster tests
Gu1nness Oct 22, 2024
1144513
fix: tests timeout
Gu1nness Oct 22, 2024
b639cfb
fix: tests (ensure deployment is finished)
Gu1nness Oct 23, 2024
54f6c7a
test: Wait after scale up for stability
Gu1nness Oct 23, 2024
e8289b4
update upgrade tests to use correct username
MiaAltieri Oct 23, 2024
a31f73c
test: better wait strategy
Gu1nness Oct 23, 2024
1bfd8db
rename update_termination_grace_period + close all k8s clients
MiaAltieri Oct 23, 2024
b1c40ae
you can't close client
MiaAltieri Oct 23, 2024
2e1b04c
Updates to statefulset patching, remove needs_new_termination_period,…
MiaAltieri Oct 23, 2024
5da146d
fix: mutating webhook gets garbage collected at namespace deletion
Gu1nness Oct 24, 2024
dec583f
fix: needs to catch error here
Gu1nness Oct 24, 2024
b720485
fix: defer on error
Gu1nness Oct 28, 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
7 changes: 7 additions & 0 deletions metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,19 @@ containers:
mounts:
- storage: mongodb
location: /var/lib/mongodb
webhook-mutator:
resource: data-platform-k8s-webhook-mutator-image
resources:
mongodb-image:
type: oci-image
description: OCI image for mongodb
# TODO: Update sha whenever upstream rock changes
upstream-source: ghcr.io/canonical/charmed-mongodb@sha256:b4b3edb805b20de471da57802643bfadbf979f112d738bc540ab148d145ddcfe
data-platform-k8s-webhook-mutator-image:
type: oci-image
description: OCI image for mongodb
# TODO: Update sha whenever upstream rock changes
upstream-source: ghcr.io/canonical/data-platform-k8s-mutator@sha256:42f55732ec151a36c06e056ecb91f2aef12a405c3e34657750a0f8685e6fa37d
storage:
mongodb:
type: filesystem
Expand Down
154 changes: 72 additions & 82 deletions poetry.lock

Large diffs are not rendered by default.

Loading
Loading