Skip to main content

Mongo Charms Single Kernel library

Library containing shared code for MongoDB operators (mongodb, mongos, VM and k8s).

The goal of this library is to provide reusable and shared code for the four mongo charms:

Code layout

The source code can be found in single_kernel_mongo/ The layout is organised as so:

Charm Structure

This single kernel library aims at providing a clear and reliable structure, following the single responsibility principle. All the logic is expected to happen in this library and a charm should be no more than a few lines defining the substrate, the operator type and the config.

class MongoTestCharm(AbstractMongoCharm[MongoDBCharmConfig, MongoDBOperator]):
    config_type = MongoDBCharmConfig
    operator_type = MongoDBOperator
    substrate = Substrates.VM
    peer_rel_name = PeerRelationNames.PEERS
    name = "mongodb-test"

A glance of the charm structure and interfaces

Contributing

You can have longer explanations in ./CONTRIBUTING.md but for a quick start:

# Install poetry and tox
pipx install tox
pipx install poetry

poetry install

Code quality is enforced using pre-commit hooks. They will run before each commit and also at other stages.

# Install the first time
pre-commit install

# Run it manually with
pre-commit run --all-files

Once a PR is opened, it's possible to trigger integration testing on the charms with a comment on the PR. This can be run only by members of the Data and AI team

Use the following syntax:

* /test to run on 4 charms.
* /test/<mongodb | mongos>/<vm | k8s> to run on a specific charm.
* /test/*/<vm | k8s> to run for both charms on a specific substrate.

This will create a PR with an updated version of the library on the selected charms.

Project and community

Mongo Charms Single Kernel library is an open source project that warmly welcomes community contributions, suggestions, fixes, and constructive feedback.

License

The Mongo Single Library is free software, distributed under the Apache Software License, version 2.0. See LICENSE for more information.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mongo_charms_single_kernel-1.8.53.tar.gz (331.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mongo_charms_single_kernel-1.8.53-py3-none-any.whl (393.3 kB view details)

Uploaded Python 3

File details

Details for the file mongo_charms_single_kernel-1.8.53.tar.gz.

File metadata

File hashes

Hashes for mongo_charms_single_kernel-1.8.53.tar.gz
Algorithm Hash digest
SHA256 ffd0e81040c321050134a2022b06bb489bf10219f8f1bfea58570b501b251c26
MD5 36919d46b37e7c8877f6d07c138b8ce4
BLAKE2b-256 79a1c8f5ee689c9b65fe40d39b6295edd15291626966127ca2e415fcf87da09a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mongo_charms_single_kernel-1.8.53.tar.gz:

Publisher: release.yaml on canonical/mongo-single-kernel-library

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mongo_charms_single_kernel-1.8.53-py3-none-any.whl.

File metadata

File hashes

Hashes for mongo_charms_single_kernel-1.8.53-py3-none-any.whl
Algorithm Hash digest
SHA256 2a3ba0db12e0d94fa95bbcd12889b3ebe1ab1dd0ea3e556c17009897ee7c7d9a
MD5 4f1ea2d3762e97f279ff7fc8d21fe345
BLAKE2b-256 66896fdc456bae36f420aad2827ec76812b51de7aa4fc0f9242ff2e32b63241a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mongo_charms_single_kernel-1.8.53-py3-none-any.whl:

Publisher: release.yaml on canonical/mongo-single-kernel-library

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.8.63

2 files

1.8.62

2 files

1.8.61

2 files

1.8.60

2 files

1.8.59

2 files

1.8.57

2 files

1.8.56

2 files

1.8.55

2 files

1.8.54

2 files

This release

1.8.53 This release

2 files

1.8.52

2 files

1.8.51

2 files

1.8.50

2 files

1.8.49

2 files

1.8.48

2 files

1.8.47

2 files

1.8.46

2 files

1.8.43

2 files

1.8.42

2 files

1.8.41

2 files

1.8.39

2 files

1.8.37

2 files

1.8.35

2 files

1.8.34

2 files

1.8.33

2 files

1.8.32

2 files

1.8.31

2 files

1.8.30

2 files

1.8.29

2 files

1.8.28

2 files

1.8.27

2 files

1.8.26

2 files

1.8.24

2 files

1.8.23

2 files

1.8.22

2 files

1.8.21

2 files

1.8.19

2 files

1.8.18

2 files

1.8.16

2 files

1.8.15

2 files

1.8.14

2 files

1.8.13

2 files

1.8.12

2 files

1.8.11

2 files

1.8.10

2 files

1.8.9

2 files

1.8.8

2 files

1.8.7

2 files

1.8.6

2 files

1.8.5

2 files

1.8.4

2 files

1.8.3

2 files

1.8.2

2 files

1.8.1

2 files

1.7.22

2 files

1.7.21

2 files

1.7.20

2 files

1.7.19

2 files

1.7.18

2 files

1.7.17

2 files

1.7.16

2 files

1.7.15

2 files

1.7.14

2 files

1.7.13

2 files

1.7.12

2 files

1.7.10

2 files

1.7.9

2 files

1.7.8

2 files

1.7.7

2 files

1.7.6

2 files

1.7.5

2 files

1.7.3

2 files

1.7.2

2 files

1.7.1

2 files

1.6.32

2 files

1.6.31

2 files

1.6.30

2 files

1.6.29

2 files

1.6.28

2 files

1.6.27

2 files

1.6.26

2 files

1.6.25

2 files

1.6.24

2 files

1.6.23

2 files

1.6.22

2 files

1.6.21

2 files

1.6.20

2 files

1.6.18

2 files

1.6.17

2 files

1.6.16

2 files

1.6.14

2 files

1.6.13

2 files

1.6.12

2 files

1.6.11

2 files

1.6.10

2 files

1.6.9

2 files

1.6.8

2 files

1.6.7

2 files

1.6.6

2 files

1.6.5

2 files

1.6.4

2 files

1.6.3

2 files

1.6.2

2 files

1.6.1

2 files

0.1.3

2 files

0.1.1

2 files

0.1.0

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

0.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page