-
Notifications
You must be signed in to change notification settings - Fork 9
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
Verify: add verify function for k8s Jobs #64
Conversation
Signed-off-by: Zac Pitones <zac.pitones@ibm.com>
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.
@pit1sIBM Thanks for the PR! It occurs to me that there may be several uses for a Job
during a rollout:
- Start a process that should not block further rollout
- Start a process that should block further rollout
This PR clearly tackles (2), but I'm wondering if there's any realistic usecase for (1) that we should consider?
Thanks @gabe-l-hart, I'm of the mindset that any Job I create is one I expect to complete successfully. If I just want a process to run, I'd probably just create a Pod. So I would prefer Jobs to prevent further rollout since a failure is usually not desired. I'm still wrapping my head around oper8 in general, but I assume if we wanted to merge this PR and still handle (1), we'd need to override the |
@pit1sIBM thank you for opening this PR! We've needed a default job verification function for a while.
I think that makes sense as it's the safest approach.
Correct that's what you'd have to do now. However, I've been thinking about this more and we might want to add a |
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.
Makes sense to me! @HonakerM Thanks for tackling that verify_function
addition. With that, I think this is a great default to have.
Related Issue
Supports #65
Related PRs
This PR is not dependent on any other PR
What this PR does / why we need it
Adds a default verify check for k8s Jobs
Special notes for your reviewer
If applicable**
What gif most accurately describes how I feel towards this PR?