gajus / lightship

Abstracts readiness, liveness and startup checks and graceful shutdown of Node.js services running in Kubernetes.
Other
515 stars 33 forks source link

Option to pass `Roarr` instance to lightship? #48

Closed alphaone closed 1 year ago

alphaone commented 2 years ago

Hey,

I am using Roarr in my application and enhance it with a couple of simple middlewares. It would be super-helpful, if I could pass this Roarr instance to lightship.

Do you think that is is doable?

Btw: Amazing work! Lightship is great software, that makes running my applications in Kubernetes a bliss 👌

gajus commented 1 year ago

Roarr is designed to not be passed around, i.e. It is assumed that applications/frameworks have their own separate instances of Roarr.

However, you can always achieve this using Roarr.adopt().