-
Notifications
You must be signed in to change notification settings - Fork 0
Move the content of the flask-k8s charm to a separate Python library #70
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm!
.gitignore
Outdated
@@ -8,3 +8,5 @@ __pycache__/ | |||
.idea | |||
.vscode/ | |||
*.rock | |||
*.egg-info/ | |||
dist/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is a missing newline here :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are also changing the ingress lib version as part of this PR. Can you update the description? Also, it would be better next time to have changes as atomic as possible in each PR for easier review, among other reasons.
I haven't seen a PR for review for the new repository. Can you link it here?
Sorry I forgot there's already an old pull request to update the For the new repository, it's here https://github.com/canonical/xiilib. But there's not much thing we can do in that repository (CI/CD) since that's highly dependent on the charmcraft update (new init profile). For now, I just pined the commit version of the |
Understood. Thank you! |
I have seen this PR, just holding off review as we are still discussing a spec for how we approach this and what the contents of |
@@ -33,110 +23,6 @@ def __init__(self, *args: typing.Any) -> None: | |||
args: passthrough to CharmBase. | |||
""" | |||
super().__init__(*args) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like some more changes are needed here
b130968
to
a41f54c
Compare
Test coverage for b5a1828
Static code analysis report
|
Overview
Refactor the
flask-k8s
charm by transferring the majority of its logic to thexiilib
Python library.Rationale
By creating a universal library for all 12-factor charms, we enable the reuse of components across various 12-factor charms. Additionally, this approach reduces the
flask-k8s
charm's size, making it fits into a template.Checklist
src-docs
urgent
,trivial
,complex
)