ShedLock icon indicating copy to clipboard operation
ShedLock copied to clipboard

Support Kubernetes Lease as lock provider

Open ukeller opened this issue 1 year ago • 1 comments

This article https://www.acritelli.com/blog/kubernetes-leases/ made me wonder if it is possible to make this work. Not expecting it to be done for me, just want to see if there is feedback/interest.

ukeller avatar Nov 22 '23 11:11 ukeller

Hi, if it's useful for you, it may be useful for the others and I am happy for any PR. Just pick an existing LockProvider and copy it. The main thing, I insist on, is that all the tests from AbstractLockProviderIntegrationTest are passing in CI.

Thinking about it, it may be tricky to make the tests work in CI with K8S. If that's the case, you can always publish the LockProvider as an independent project/artifact. Or keep it for yourself.

lukas-krecan avatar Nov 22 '23 15:11 lukas-krecan