Charmcraft supports the development of operators using the Charmed Operator Framework. It enables developers to build, upload and release operators on Charmhub and collaboration through charm libraries.
This new version was just released to candidate
channel, we’d appreciate any tests on this, please report here any issues you find. Once we find this is solid enough, we will release it to stable
.
It includes the following changes:
-
Several performance related improvements:
-
Reuse already installed dependencies from last run if requirements didn’t change
-
Faster launch of existing containers when packing charms
-
-
Improved user experience:
-
Show lifecycle step progress (related issue)
-
The deprecated ‘build’ command is now hidden and ‘pack’ appears more prominently in the help messages (related issue)
-
Better error messages in a couple of commands
-
Fixed interaction with user when asking if to install Multipass in Windows (related issue)
-
-
Enabled
craftcl
from Craft Parts scriptlets to be able to run the overridden step’s built-in handler (related issue) -
Full logs from building container are always retrieved, even after a success
pack
(related issue) -
Updated the
ops
framework version in theinit
template -
Fixed a bug in libraries handling so disk paths are always importable (related issue)
-
Fixed which remote image was used by Multipass provider
-
Save the content of
CHARMCRAFT_IMAGE_INFO
environment variable into the Charm’s manifest
Use Charmcraft to:
- Initialise a new charm and directory structure
- Pack your Charmed Operator into a charm for distribution
- Register your charm name on Charmhub
- Upload your charms to Charmhub
- Release your charms into channels
- Publish and fetch charm libraries
We recommend the Charmed Operator Framework for charm development, but Charmcraft will help you publish charms written in any language. The Charmed Operator Framework enables the development of operators in a simple and straightforward way, using standard Python structures to allow for clean, maintainable, and reusable code.
Happy charming!