-
Notifications
You must be signed in to change notification settings - Fork 188
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
lifecycle hook to wait until all terraform processes are completed #258
Comments
hi @nitrocode, unfortunately haven't had the time for it yet. The initial idea was to trap SIGTERM via A little food for thought: since the server already handles graceful termination to an extent, wouldn't it be better to implement the use case on the server rather than in the Helm chart? |
Yes, graceful termination should be implemented in the server. I was thinking this lifecycle method could be a nice workaround for now. 😄 |
@nitrocode Should we close this issue and create one on the Atlantis repo? |
I think we can have both issues. One here for lifecycle method and one for graceful termination in the server. |
This is what I came up with, let me know if seems okay and I will create a PR. statefulSet:
terminationGracePeriodSeconds: 180
lifecycle:
preStop:
exec:
command:
- /bin/bash
- -c
- while [ "$(pgrep -f terraform)" ]; do sleep 1; done |
Lifecycle hooks are supported but it would be nice to add
cc: @Balsir since you added the lifecycle feature to this repo, have you figured out a good
preStop
lifecycle ?References
The text was updated successfully, but these errors were encountered: