Add leader and status new hooks #122

Merged
merged 2 commits into from May 11, 2015

Conversation

Projects
None yet
2 participants
Contributor

perrito666 commented Apr 27, 2015

These hooks are required for:
Leader election, these are alredy defined but in the wrong place
inside juju core.
Health status, we add an update-status hook.

hooks/hooks.go
+ ActionRequested Kind = "action-requested" // TODO: remove in charm v5, DEPRECATED
+ Action Kind = "action"
+ CollectMetrics Kind = "collect-metrics"
+ UpdateStatus Kind = "update-status"
@wallyworld

wallyworld Apr 27, 2015

Owner

could this please be moved to the end of the list, as where it is now splits up the CollectMetrics and MeterStatusChanged hooks which belong together. Same comment applies to other files.

Owner

wallyworld commented May 1, 2015

LGTM

Owner

wallyworld commented May 1, 2015

$$merge$$

perrito666 added some commits Apr 27, 2015

Add leader and status new hooks
These hooks are required for:
Leader election, these are alredy defined but in the wrong place
inside juju core.
Health status, we add an update-status hook.

perrito666 added a commit that referenced this pull request May 11, 2015

Merge pull request #122 from perrito666/add_new_hooks
Add leader and status new hooks

@perrito666 perrito666 merged commit ae1713e into juju:v5 May 11, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment