Skip to content

[MISC] Move utils to single kernel#129

Merged
dragomirp merged 3 commits into
16/edgefrom
port-utils
May 25, 2026
Merged

[MISC] Move utils to single kernel#129
dragomirp merged 3 commits into
16/edgefrom
port-utils

Conversation

@dragomirp
Copy link
Copy Markdown
Contributor

@dragomirp dragomirp commented May 24, 2026

@dragomirp dragomirp added the enhancement New feature or request label May 24, 2026
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

To keep the namespace similar.

@@ -1,3 +1,197 @@
# Copyright 2025 Canonical Ltd.
# Copyright 2022 Canonical Ltd.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Old code, so old copyright.

Returns:
The converted name.
"""
return "/".join(label.rsplit("-", 1))
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Changed from charms to use a single rsplit.

Comment on lines +98 to +100
def render_file(
substrate: Substrates, path: str, content: str, mode: int, change_owner: bool = True
) -> None:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Used also by k8s to render files on the shared volume.

Comment thread pyproject.toml
Comment on lines +25 to +27
[project.optional-dependencies]
postgresql = ["httpx; python_version >= '3.12'"]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Extra deps, so not to install for PGB charms.

@dragomirp dragomirp marked this pull request as ready for review May 24, 2026 16:06
@dragomirp dragomirp requested a review from a team as a code owner May 24, 2026 16:06
@dragomirp dragomirp requested review from carlcsaposs-canonical, juju-charm-bot, marceloneppel and taurus-forever and removed request for a team May 24, 2026 16:06
Copy link
Copy Markdown
Contributor

@taurus-forever taurus-forever left a comment

Choose a reason for hiding this comment

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

Tnx!

@dragomirp dragomirp merged commit cc7b1c0 into 16/edge May 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants