Skip to content

Commit

Permalink
Update docs for hooks
Browse files Browse the repository at this point in the history
Signed-off-by: Md. Ishtiaq Islam <[email protected]>
  • Loading branch information
ishtiaqhimel committed Aug 23, 2024
1 parent 6eede55 commit a39f818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guides/hooks/overview/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Here, we are going to discuss how Stash executes the hooks in different scenario
<figcaption align="center">Fig: Hook Execution flow in sidecar model</figcaption>
</figure>

- **Job Model:** In Job model, `httpGet`, `httpPost` and `tcpSocket` are executed by the backup/restore job. However, the `exec` hook is executed in the targeted application pod. In order to determine the targeted application pod, Stash uses the `Service` specified in the respective `AppBinding` crd. It first determines the endpoints of the Service. Then, it executes the hook into one of the pod pointed by those endpoints. Hence, if the `AppBinding` points to an external URL, it is not possible for Stash to execute the `exec` hook. The hook execution flow in job model is shown in the following diagram:
- **Job Model:** In Job model, the hooks are executed in the backup/restore job if the targeted application is not `AppBinding`. For `AppBinding`, hook is executed in the targeted application pod. In order to determine the targeted application pod, Stash uses the `Service` specified in the respective `AppBinding` crd. It first determines the endpoints of the Service. Then, it executes the hook into one of the pod pointed by those endpoints. Hence, if the `AppBinding` points to an external URL, it is not possible for Stash to execute the hook. The hook execution flow in job model is shown in the following diagram:

<figure align="center">
  <img alt="Hook Execution flow in job model" src="images/job-model.svg">
Expand Down

0 comments on commit a39f818

Please sign in to comment.