upgrade-charm hook

Merlijn Sebrechts merlijn.sebrechts at gmail.com
Tue Sep 26 07:41:59 UTC 2017


Does a `resource.changed` flag address your needs? That should be possible
to implement in charms.reactive, I think.

2017-09-24 17:53 GMT+02:00 James Beedy <jamesbeedy at gmail.com>:

> How do people feel about splitting the upgrade-charm hook into multiple
> hooks to facilitate better resource management?
>
> What I'm thinking would be super helpful would be to have the
> upgrade-charm hook still active for charm upgrades, and have separate hooks
> or flags that would indicate resource upgrades.
>
> I'm thinking something like:
>
> 'juju attach myapp myresource=myresource.file'
>
> Would cause the 'upgrade-resource-myresource'  hook to become active on
> instances of 'myapp'.
>
> I feel that having this affinity from resource ->
> resource-upgrade-<resource-name> hook would be a huge win for resource
> management.
>
> Thoughts?
>
>
>
>
> --
> Juju-dev mailing list
> Juju-dev at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/juju-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20170926/8e8c914f/attachment.html>


More information about the Juju-dev mailing list