[RFE] Add leader request command
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
There is no commands from which a charm may request to change the leader of its own application.
That means Juju leadership cannot be extended for more than charm leadership (e.g. use it to also track the leader of a database or holder of a VIP).
Would be interesting to add a "leader-request <unit-number>" command that allows charms to request to become the leader.
It means implementing a method similar to: https:/
That does not have the initial check:
if ctx.isMinion {
return errIsMinion
}
In this case, I'd recommend making the value of LeadershipGuarantee a model-config:
https:/
tags: | added: canonical-data-platform-eng |
Can you add some context here for the use-case that you're proposing this will solve? There might be a better way...