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

Mark cronjob pods as failed on backup operation failure #91

Open
jujaga opened this issue Jan 6, 2022 · 0 comments
Open

Mark cronjob pods as failed on backup operation failure #91

jujaga opened this issue Jan 6, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@jujaga
Copy link
Member

jujaga commented Jan 6, 2022

For cronjob deployments on OCP4, the current behavior always exits and marks the pod status as Completed, meaning that the only way to discover if the task actually succeeded or failed is by inspecting the pod logs.

It would be beneficial to be able to tell at a glance as to whether a database backup operation succeeded or failed based on whether the pod status is marked as Completed or Failed when acquiring a pod list. This would likely need the main backup-container script to change its behavior to detect when a backup operation fails and exit with a non-zero status.

@WadeBarnes WadeBarnes added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants