See also:

A resource is additional content that a charm can make use of, or may require, to run. This can be especially useful where you need to include large blobs (perhaps a database, media file, or otherwise) that may not need to be updated with the same cadence as the charm or workload itself. By keeping resources separate, you can control the lifecycle of these elements more carefully, and in some situations avoid the need for repeatedly downloading large files from Charmhub during routine upgrades/maintenance.

There are two types of resources (specified in the type key for each resource in the charm’s metadata.yaml file): file and oci-image.

Last updated 3 months ago.