Shared utilities for Charmed Service Mesh.
Project description
canonical_service_mesh
A shared utility library for the Charmed Service Mesh ecosystem.
Purpose
The Charmed Service Mesh ecosystem will contain charms that integrate service mesh technologies into the Juju ecosystem. These charms and their interface libraries share a significant amount of common code: Pydantic models for Kubernetes resource creation and service mesh CRD resources, lightkube-based resource management, label generation and authorization policies etc.
This package is the single home for all of that shared utility code. By centralizing it here, every charm and interface library depends on one well-maintained package instead of copying code between repositories or pulling from multiple helper packages.
Ecosystem
The ecosystem has three layers:
- This package (
canonical_service_mesh) provides models, resource managers, and helpers. It has no knowledge of Juju relations or charm lifecycle, which keeps it testable and reusable. - Interface libraries (via the
charmlibsmonorepo) define the relation databag schemas and the interface classes. They import from this package. - Charms contain purely the charm specific logic and consume the interface and the canonical_service_mesh libraries.
Package structure
enums
Shared enumerations used across the ecosystem.
models
Pydantic models for Kubernetes and service mesh resources. The top-level models module contains generic Kubernetes Gateway API resource models. The models.istio subpackage contains Istio-specific CRD specs for authorization policies and request authentication.
utils
Helper functions for Kubernetes label generation, Juju identity resolution, and service mesh specific operations like label ConfigMap reconciliation and policy resource construction.
k8s
Kubernetes resource management built on lightkube. The k8s.resource_manager subpackage provides declarative resource lifecycle management with label-based ownership, policy resource management, and batch operations. The k8s.types subpackage defines lightkube type aliases and custom resource definitions.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file canonical_service_mesh-0.0.1.tar.gz.
File metadata
- Download URL: canonical_service_mesh-0.0.1.tar.gz
- Upload date:
- Size: 67.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d271e6c326060540a1aa05fd6ff57b5f8199f54a3aac9871209e5e812980b5e3
|
|
| MD5 |
b6af0d20bfac9cacaed5f6228b75a164
|
|
| BLAKE2b-256 |
9dc8160769d7e8297f6888029abc53dd3107241f9867ec52fd838e06bdb2d694
|
Provenance
The following attestation bundles were made for canonical_service_mesh-0.0.1.tar.gz:
Publisher:
canonical-service-mesh-release.yaml on canonical/service-mesh
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
canonical_service_mesh-0.0.1.tar.gz -
Subject digest:
d271e6c326060540a1aa05fd6ff57b5f8199f54a3aac9871209e5e812980b5e3 - Sigstore transparency entry: 1369578118
- Sigstore integration time:
-
Permalink:
canonical/service-mesh@05a240d4158f15c00ea30f3e63eeadd7b6fb7da8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/canonical
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
canonical-service-mesh-release.yaml@05a240d4158f15c00ea30f3e63eeadd7b6fb7da8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file canonical_service_mesh-0.0.1-py3-none-any.whl.
File metadata
- Download URL: canonical_service_mesh-0.0.1-py3-none-any.whl
- Upload date:
- Size: 28.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f764455f965efbf3048cf8879ad09dd1c3f7fc0b4cc3215c14e3f201bd7b04c7
|
|
| MD5 |
801f02a0db87ca700d0967a3be7369d9
|
|
| BLAKE2b-256 |
ca008134f6d30f0d8ccd137f15be768ea5513912d595eb601ed7206ea3a4a411
|
Provenance
The following attestation bundles were made for canonical_service_mesh-0.0.1-py3-none-any.whl:
Publisher:
canonical-service-mesh-release.yaml on canonical/service-mesh
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
canonical_service_mesh-0.0.1-py3-none-any.whl -
Subject digest:
f764455f965efbf3048cf8879ad09dd1c3f7fc0b4cc3215c14e3f201bd7b04c7 - Sigstore transparency entry: 1369578311
- Sigstore integration time:
-
Permalink:
canonical/service-mesh@05a240d4158f15c00ea30f3e63eeadd7b6fb7da8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/canonical
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
canonical-service-mesh-release.yaml@05a240d4158f15c00ea30f3e63eeadd7b6fb7da8 -
Trigger Event:
push
-
Statement type: