Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-exit hooks run more than once on pods with multiple containers #483

Open
bpoland opened this issue Jan 24, 2025 · 0 comments
Open

Pre-exit hooks run more than once on pods with multiple containers #483

bpoland opened this issue Jan 24, 2025 · 0 comments

Comments

@bpoland
Copy link

bpoland commented Jan 24, 2025

Hi, I noticed that when I have more than one container in a pod then the pre-exit hooks run on each container. The docs on pre-exit hooks say Runs before the job finishes. Useful for performing cleanup tasks. which is what I want in this case, not to have it run multiple times within the same job.

It seems like if I did want a hook to run on each container after the command finishes, then a post-command hook should do that. But this pre-exit hook behaviour seems like a bug -- let me know your thoughts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant