Juju events¶
For a web app charm, the following events are observed:
Hook |
Description |
Action |
|---|---|---|
Fired on Kubernetes charms when the requested container is ready. |
Validate the charm configuration, run pending migrations and restart the workload. |
|
|
Usually fired in response to a configuration change using the CLI. |
Validate the charm configuration, run pending migrations and restart the workload. |
|
Fired when a new leader unit is elected. |
Validate the charm configuration and relations, initialize the application secret key if needed, and restart the workload without explicitly re-running migrations. |
|
Fired when the peer relation is first created. |
Validate the charm configuration, run pending migrations and restart the workload. |
|
Fired when a new unit joins in an existing relation and whenever the related unit changes its settings. |
Validate the charm configuration, run pending migrations and restart the workload. |
|
Fired when a unit departs from an existing relation. |
Validate the charm configuration, run pending migrations and restart the workload. |
|
Fired at regular intervals. |
Restart the workload if the last database migration failed, and refresh the ingress relation data. |
|
Fired when the secret owner publishes a new secret revision. |
Validate the configuration, run pending migrations and restart the workload. |
|
Fired when a new database is created. |
Validate the configuration, re-run migrations and restart the workload. |
|
Fired when the database endpoints change. |
Validate the configuration, re-run migrations and restart the workload. |
|
Fired when a database relation is removed. |
Validate the configuration, run pending migrations and restart the workload. |
|
Fired when the ingress for the web app is ready. |
Validate the configuration, run pending migrations and restart the workload. |
|
Fired when the ingress for the web app is not ready anymore. |
Validate the configuration, run pending migrations and restart the workload. |
|
Fired when the Valkey relation data is available. |
Validate the configuration, re-run migrations and restart the workload. |
Fired when the S3 credentials are changed. |
Validate the configuration, re-run migrations and restart the workload. |
|
Fired when the S3 credentials are removed. |
Validate the configuration, run pending migrations and restart the workload. |
|
|
Fired when new SAML data is present in the relation. |
Validate the configuration, re-run migrations and restart the workload. |
|
Emitted by the RabbitMQ requirer on relation changed or departed, when relation data is available. |
Validate the configuration, re-run migrations and restart the workload. |
|
Emitted by the RabbitMQ requirer when the relation is joined. |
Validate the configuration, re-run migrations and restart the workload. |
|
Fired when a new unit joins in an existing relation. |
Emit a connected event and request access to the RabbitMQ server. |
|
Fired when a new unit joins in an existing relation and whenever the related unit changes its settings. |
Emit a ready event if the RabbitMQ relation data is available. |
|
Fired when the RabbitMQ relation is removed. |
Emit a departed event. |
|
Emitted by the RabbitMQ requirer when the relation is broken. |
Validate the charm configuration, run pending migrations and restart the workload. |
|
Fired when one of the receiver endpoints changes. |
Validate the charm configuration, run pending migrations and restart the workload. |
|
Fired when one of the receiver endpoints is removed. |
Validate the charm configuration, run pending migrations and restart the workload. |
|
Fired when new SMTP data is present in the relation. |
Validate the charm configuration, run pending migrations and restart the workload. |
|
Fired when the OAuth provider information changes. |
Validate the configuration, run pending migrations and restart the workload. |
|
Fired when the OAuth provider information is removed. |
Validate the configuration, run pending migrations and restart the workload. |
|
Fired when a new unit joins in an existing relation and whenever the related unit changes its settings. |
Validate the configuration, run pending migrations and restart the workload. |
|
Fired when the OpenFGA store is created. |
Validate the configuration, run pending migrations and restart the workload. |
|
Fired when the |
Create a Django superuser in the workload container. The workload isn’t restarted. |
|
Fired when the |
Generate a new secret token for the application and restart the workload. The action also fails if the charm is still initializing. |
See also