-
Notifications
You must be signed in to change notification settings - Fork 1.5k
do not attempt to run hooks on Pods that aren't running #6811
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
base: main
Are you sure you want to change the base?
Conversation
1165010 to
3d262cb
Compare
|
We might want to skip on completed or failed pods but if pod is not yet running due to it being very new velero should wait a bit. |
Currently Velero doesn't wait either, so changing that behavior is a separate issue that can be done in a separate PR. |
|
Though maybe we should return an error when the Pod is Pending (and also when the Pod is Failed?), so the hook isn't silently skipped. |
I just implemented this, PTAL. |
07c7628 to
16f989f
Compare
This reverts commit 9b1cffc.
Skip Pod hooks when the Pod's phase isn't Running. Fixes vmware-tanzu#5137 Signed-off-by: Sebastian Hasler <[email protected]>
| @@ -1 +0,0 @@ | |||
| fix run preHook and postHook on completed pods No newline at end of file | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this changelog meant to be deleted completely rather than a single line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file is deleted in the commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noted.
Skip Pod hooks when the Pod's phase isn't Running.
Replaces #5211Fixes #5137
Please indicate you've done the following:
/kind changelog-not-requiredas a comment on this pull request.site/content/docs/main.