https://garden.io logo
#🌱|help-and-getting-started
postStart and preStop lifecycle hooks.
# 🌱|help-and-getting-started
f

fresh-yak-35965

12/08/2022, 5:40 PM
I have a module of type Kubernetes that is deploying various resources, including a primary StatefulSet. It appears that the postStart hooks defined in the statefulset are not executing. Would there be any Garden-related reason for this?
When manually deployed into a test namespace using kubectl, the hooks execute just fine and if they error you can actually see the errors in the logging. I don't see anything at all in the logs (aggregation) when running via garden.
c

curved-intern-91221

12/16/2022, 11:40 AM
Thanks for reporting this @fresh-yak-35965! This looks like a bug. Could you file a GitHub issue with a small reproducible example, please?
f

fresh-yak-35965

12/19/2022, 6:37 PM
@curved-intern-91221 Actually, sorry for the delay. They were in fact running, but I just didn't get any logging out of the pre-hook so it appeared that it wasn't working. I'm still not getting any logging, but my redis cluster is automatically configuring (this is what I was using the hook for), so clearly it is working.
q

quaint-dress-831

12/21/2022, 8:43 AM
I am tagging this as resolved. If you aren't getting logs, could I ask you to file it as a GitHub issue?
f

fresh-yak-35965

12/21/2022, 9:43 PM
Sure, I can do that @quaint-dress-831 . I will make a note to do it this week.
3 Views