Explain how juju chjus files are handled (lifecycle)

  • How many juju hook chains are there? what are they important?

  • Can anyone explain how juju guns work that work?

  • what orders are being executed?

  • Explain about the life cycle of juju charm hooks?

+3


source to share


1 answer


Hooks are simple scripts called during the lifecycle of a service. They are triggered either by launching commands (for example, "unwrapping") or events (for example, the relationship with another service is declining).

All interceptors are optional, but they are points at which you take control of what actually needs to be done.

It seems strange to me that a complete lifecycle graph is not available, so I created one below from what I understand:



enter image description here

Please note that this is put together by just reading the docs, this may not correspond 100% to how the actual code is being executed.

+5


source







All Articles