feat(openfga): Allow lifecycle hook specific to pods#198
feat(openfga): Allow lifecycle hook specific to pods#198jeremy-albuixech merged 3 commits intoopenfga:mainfrom
Conversation
jeremy-albuixech
left a comment
There was a problem hiding this comment.
thanks, just one small comment about the description, otherwise this looks good.
Would you mind adding to the description a screenshot of an example of the rendered chart that includes this, as proof of testing?
Thanks for the contribution :)
Added screenshot of lifecycle value usage. Thanks for the review :) |
Co-authored-by: Jérémy Albuixech <jeremy.albuixech@gmail.com>
b70464e to
079af8e
Compare
|
@jeremy-albuixech Hi, I rebased on main. |
|
it should be possible to merge it soon, I just approved the testing, once all statuses are green feel free to merge. |
|
@jeremy-albuixech Sorry but I can't find merge button. |
|
Thanks for your contribution @flex-seongbok - can you give maintainers edit access to this PR so we can get it merged? |
Sorry it's forked to our private org not personal fork. I can't find button for give access to maintainer. |
|
I can merge it now, thank you for your contribution @flex-seongbok ! |
|
FYI. |
|
Also Kubernetes 1.30+ has https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#hook-handler-implementations available for sleeping without needing an in container shell/sleep binary. lifecycle:
preStop:
sleep:
seconds: 10 |

This PR provides the ability to add lifecycle hook to openfga pods.
Description
Some mechanisms such as preStop or postStart hooks uses the concept of Lifecycle.
This PR adds a lifecycle value next to the resources so that lifecycle hook can be added to the openfga pods.
We use lifecycle to add preStop hook that waits few seconds before terminating pod to make sure iptable update completion.
Below screenshot is result of
helm template lifecycle-test .with lifecycle value ofReferences
Review Checklist
main