repo-policy-compliance

Repo Policy Compliance

Channel Revision Published Runs on
latest/stable 113 27 Jan 2025
Ubuntu 22.04
latest/edge 151 Yesterday
Ubuntu 22.04
juju deploy repo-policy-compliance
Show information

Platform:

Charm architecture

The Repo Policy Compliance charm is a Juju charm deploying and managing a custom Flask application

that checks if a GitHub repository aligns with a chosen set of policies for workflow runs.

It leverages the 12-factor app support to pack a Flask

application providing the functionality as defined by the standard.

For a complete view on the architecture of a 12-factor charm, refer to the 12-factor architecture documentation.

OCI images

We use Rockcraft’s Flask framework extension to build OCI Images for Repo Policy Compliance.

The images are defined in the Repo-policy-compliance rock.

They are published to Charmhub, the official repository of charms.

See more: How to publish your charm on Charmhub

Juju events

For this charm, no additional event handling is defined. The default event handling coming from the 12-factor toolchain is enough to manage the charm’s lifecycle.

Charm code overview

The src/charm.py is the default entry point for a charm and has the FlaskCharm Python class which inherits from paas_app_charmer.flask.Charm, the base class

from which all Flask app charms are formed, defined by the Flask framework extension for Charmcraft.

See more in the Charmcraft docs: Flask framework extension