-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port over autogeneration of config values from the vm charm Autogenerate config values for the mysql legacy relation Add upterm session to debug failing integration test Always set up upterm session Pass essential env with built charm to upterm session Fix minor bugs + remove upterm github action step Run format [upload-charm-docs] Migrate charm docs (#266) * 'modified: docs/explanation/e-flowcharts.md,docs/explanation/e-interfaces.md,docs/index.md,docs/how-to/h-enable-monitoring.md // new: docs/explanation/e-legacy-charm.md,docs/how-to/h-deploy-gke.md' * 'modified: docs/explanation/e-legacy-charm.md,docs/index.md' * 'modified: docs/how-to/h-deploy-gke.md' --------- Co-authored-by: upload-charms-docs-bot <upload-charms-docs-bot@users.noreply.github.com> DPE-2068 use kill-delay (#258) * use kill-delay * update requirements and delay time DPE-2225 using allocable memory instead of `free` (#256) * using allocable memory instead of `free` * use loose opt modifier * merged from vm * remove comment * fix memory units * set missing trust and testing profile in test * adjust for low memory * test change for ci * fix function call * typing fixes * test wait for maintenance of instance before asserting recovery * extra wait step * strip trailing newline * non-active Fixes for network partition test (#272) * fixes for chaos-mesh * ensure chaos-mesh availability before test * fixes destroy script * function scoped * address pr comment * fix call Port peer juju secret implementation from the vm charm (#263) Upgrade mysql (v0.38) and tls (v0.2) charm libs + minor adjustments [MISC] Revert change on Discourse Sync action (#265) Co-authored-by: upload-charms-docs-bot <upload-charms-docs-bot@users.noreply.github.com> [upload-charm-docs] Migrate charm docs (#266) * 'modified: docs/explanation/e-flowcharts.md,docs/explanation/e-interfaces.md,docs/index.md,docs/how-to/h-enable-monitoring.md // new: docs/explanation/e-legacy-charm.md,docs/how-to/h-deploy-gke.md' * 'modified: docs/explanation/e-legacy-charm.md,docs/index.md' * 'modified: docs/how-to/h-deploy-gke.md' --------- Co-authored-by: upload-charms-docs-bot <upload-charms-docs-bot@users.noreply.github.com> DPE-2068 use kill-delay (#258) * use kill-delay * update requirements and delay time DPE-2225 using allocable memory instead of `free` (#256) * using allocable memory instead of `free` * use loose opt modifier * merged from vm * remove comment * fix memory units * set missing trust and testing profile in test * adjust for low memory * test change for ci * fix function call * typing fixes * test wait for maintenance of instance before asserting recovery * extra wait step * strip trailing newline * non-active Pin python dependencies with Poetry (#273) [MISC] Switch maintainers to the DPE mailing list (#269) * Switch maintainers to the DPE mailing list * Update metadata.yaml Co-authored-by: Carl Csaposs <carl.csaposs@canonical.com> --------- Co-authored-by: Carl Csaposs <carl.csaposs@canonical.com> Pin charmcraft to 2.3.0 in release.yaml to fix build (#276) charmcraft pinned to 2.3.0 in integration test build but not release build canonical/charmcraft#1179 Add missing group markers (#278) Leftover from #273 No integration tests were running since no groups were collected Address PR feedback
- Loading branch information
1 parent
be86a11
commit afcbe15
Showing
42 changed files
with
3,321 additions
and
746 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": ["github>canonical/data-platform//renovate_presets/charm.json5"], | ||
"reviewers": ["team:data-platform-mysql"], | ||
"packageRules": [ | ||
// Later rules override earlier rules | ||
|
||
// MySQL 8.X does not follow semantic versioning (e.g. 8.0.1 -> 8.0.2 can include a breaking change) | ||
// Therefore, use a separate Renovate group so that it has a separate PR | ||
{ | ||
"matchManagers": ["poetry"], | ||
"matchPackageNames": ["mysql-connector-python"], | ||
"groupName": "MySQL Connector/Python" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
/requirements.txt | ||
/requirements-last-build.txt | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,36 @@ | ||
# Charm lifecycle flowcharts | ||
|
||
[Click to navigate the mermaid diagram on GitHub](https://github.com/canonical/mysql-k8s-operator/blob/main/docs/explanation/e-flowcharts.md). | ||
|
||
```mermaid | ||
flowchart TD | ||
id101([leader_elected]) --> id102[generate\npassword/configs] | ||
id102 --> id103[store peer databag] | ||
id103 --> id104[add `configured`\nflag] | ||
id104 --> id105((return)) | ||
id103 --> id104((return)) | ||
id201([pebble_ready]) --> id202{if not `configured` \nnor peer relation} | ||
id202 --> id203>defer] | ||
id202 -- else --> id204[add pebble layer] | ||
id204 --> id205[configure users] | ||
id205 --> id206[configure instance] | ||
id204 --> id205[configure mysql\nusers] | ||
id205 --> id206[configure instance\nfor GR] | ||
id206 --> id207{is leader?} | ||
id207 -- no --> id208((return)) | ||
id207 -- yes --> id209[create cluster] | ||
id207 -- yes --> id209[create GR cluster] | ||
id209 --> id208 | ||
id301([peer_relation_joined]) --> id302{if not `configured`} | ||
id302 --> id303>defer] | ||
id302 -- else --> id304{is leader?} | ||
id304 -- no --> id311 | ||
id304 -- yes --> id305{container\ncannot connect\nor pebble layer\nnot running} | ||
id305 --> id303 | ||
id305 -- no --> id306[check instance configuration] | ||
id306 --> id307{instance configured?} | ||
id307 -- no --> id303 | ||
id307 -- yes --> id308{any units in state transfer?} | ||
id308 -- yes --> id303 | ||
id308 -- no --> id309[store instance address to databag] | ||
id309 --> id310[add instance to cluster] | ||
id310 --> id311((return)) | ||
``` | ||
|
||
id301([peer_relation_changed\nor\nupdate_status]) --> id302{is waiting\nto join} | ||
id302 -- yes --> id303{is already\nin cluster?} | ||
id303 --> id304[get primary\nfrom any online peer] | ||
id304 --> id305[get current\ncluster node count] | ||
id305 --> id306{is cluster\nat max size} | ||
id306 -- no --> id307{is cluster\ntopology\nchanging} | ||
id307 --> id309[acquire topology\nchange token] | ||
id309 --> id310[join the cluster\nfrom primary] | ||
id310 --> id311[release token] | ||
id306 -- yes --> id308[Set blocked\nand standby] | ||
id302 -- no --> id399((return)) | ||
id303 -- yes --> id399 | ||
id307 --> id399 | ||
id308 --> id399 | ||
id311 --> id399 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.