Closed husky-parul closed 5 years ago
@husky-parul There are a couple of nit comments. Also is the PR ready/tested? It still says DO NOT MERGE in the title.
@husky-parul There are still a couple of unresolved comments on this pull. Let me know when you are ready for another review.
Good to merge? @danmcp ?
@rudolphpienaar There are still a couple of unresolved comments on this one.
@danmcp @ravisantoshgudimetla All changes add. Ready for review.
Seems relevant: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#clean-up-finished-jobs-automatically This requires adding
ttlSecondsAfterFinished
in job spec inopenshiftmgr.py
@husky-parul And does it theoretically solve the problem or would something still be missing?
@husky-parul And does it theoretically solve the problem or would something still be missing? @danmcp If this works, we can do away with cron jobs to delete old jobs (completed/failed). I am testing it. Should we remove
delete
command from pman as all the jobs will be deleted eventually when their TTL expires?
@husky-parul We would still need delete for tests unless the ttl is really short
I think this is enabled in kube 1.12(that alpha), so might not work with OpenShift 3.11 yet.(4.0 is based on 1.12 but currently rebase to kube 1.12 is in progress and we cannot see this feature in OpenShift till it graduates to beta in kube upstream.)
I think this is enabled in kube 1.12(that alpha), so might not work with OpenShift 3.11 yet.(4.0 is based on 1.12 but currently rebase to kube 1.12 is in progress and we cannot see this feature in OpenShift till it graduates to beta in kube upstream.)
@danmcp @ravisantoshgudimetla setting TTL is not deleting jobs as of now so keeping cron jobs.
Added ttlSecondsAfterFinished
for Openshift 4.0 support.
@husky-parul Everything tested and ready to merge?
LGTM @rudolphpienaar Please review and merge.
Added env variables, volumes, and volumeMount to reaper module. This was missed in previous PR causing reaper to fail.