Explain about how the juju charms hooks files working (Life Cycle)

余生颓废 提交于 2021-02-18 17:13:51

问题


  • How many juju charms hooks files are there ? what are they important ?

  • Can anyone please explain about how the juju charms hooks files working ?

  • what are the orders to be executed ?

  • Explain about life-cycle about juju charms hooks ?


回答1:


Hooks are simple scripts called during the lifecycle of a service. They are triggered either by commands run (like "deploy") or events (like a relation with another service going down).

All hooks are optional, but they are the points where you take control of what the charm actually needs to do.

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

enter image description here

Note that this is gathered by just reading the docs, it might not correspond 100% with how the actual code is run.



来源:https://stackoverflow.com/questions/25157039/explain-about-how-the-juju-charms-hooks-files-working-life-cycle

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!