-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat(#52): add a TTL period to deployed jobs #97
feat(#52): add a TTL period to deployed jobs #97
Conversation
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.
Thank you for the very nice work and contribution. It is duly appreciated.
Regarding the PR, I am good with almost everything. The only thing I see missing would be couple of tests that touch on the validation logic.
- When ttl is default
- When ttl is something else
src/main/java/com/locust/operator/controller/config/SysConfig.java
Outdated
Show resolved
Hide resolved
src/main/java/com/locust/operator/controller/config/SysConfig.java
Outdated
Show resolved
Hide resolved
Hello @jachinte, |
Hi @AbdelrhmanHamouda, |
Hi @AbdelrhmanHamouda, I've updated this PR according to your suggestions. Tests run successfully locally, however, one of the CI checks is not passing. Could you please take a look at that? |
68328bf
to
7c9043e
Compare
Thank you for your contribution. The failing test is something new and it seems that it is due to some hidden change somewhere in one of GitHub Actions. I will work on this separately. |
resolve #52 |
This pull request implements the feature I proposed in #52
I've added some documentation in the advanced topics page.
One caveat of this implementation is that Kubernetes's TTL controller doesn't support custom resources. So, setting the
ttlSecondsAfterFinished
property will clean up master and worker jobs, but won't delete config maps or load tests. In case someone is looking for removal of load tests, config maps and jobs, TwiN/k8s-ttl-controller could be a good alternative.Please let me know your thoughts on this PR.