The Python Operator Framework team has just released a release candidate for the upcoming ops 2.0 version, specifically 2.0.0rc2
(it’s called rc2, but it’s actually the first proper release candidate for 2.0.0; there was an issue with rc1). The main feature addition is support for Juju Secrets (Juju 3.0.2+).
There are a couple of changes that may break certain tests (though none that should break charms themselves): removal of SIMULATE_CAN_CONNECT
(it’s effectively on by default now), and relatedly, making begin_with_initial_hooks()
set can_connect to True and fire pebble-ready for all containers. Full changelog at https://github.com/canonical/operator/releases/tag/2.0.0rc2
It’s available from PyPI by using pip install ops==2.0.0rc2
. Please try it with your charms and let me know if anything’s amiss.