Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Missing base hooks: leadership, update-status, storage #4
Comments
|
+1 to this Missing update-status, and upgrade-charm hooks leave me with reactive charms that don't respond properly when decorating with @hook() decorators, as the hook exits 0 - never reaching the proper hook context in the reactive methods. |
|
I'm a little bit hesitant about including In some cases, this could actually be useful behavior, though, since sometimes it can be difficult to get a service to retry a hook that resulted in "blocked" status, but I wonder if it might not be worth gating it behind some sort of layer option? |
|
Would it be possible for charm build to sniff all @hook decorators and add On Mon, Nov 16, 2015 at 3:41 PM Cory Johns notifications@github.com wrote:
|
|
Not really, because of the external / non-python handlers; it's not really possible to introspect them. I should perhaps clarify that I'm not entirely adverse to including |
johnsca
referenced this issue
in juju/charm-tools
Dec 4, 2015
Closed
Add reactive hooks for defined storage #66
|
These are all available now. |
marcoceppi commentedOct 28, 2015
New hooks exist since 1.23 of Juju which are not modeled in the base layer:
where
{storage}is defined under the top levelstoragekey in metadata.yamlIt'd be great to have them there by default