openfaas / nats-queue-worker

Queue-worker for OpenFaaS with NATS Streaming
https://docs.openfaas.com/reference/async/
MIT License
128 stars 59 forks source link

[Feature Request] CRD for Queue/Queue Worker #113

Open kevin-lindsay-1 opened 2 years ago

kevin-lindsay-1 commented 2 years ago

Expected Behaviour

Right now faas-netes exposes up a handy little CRD for Functions.

At the moment, I find myself copying a live deployment of a queue-worker and turning that into a helm template, which is slightly dangerous because it means that users using more than the default queue are likely all bespoke to a certain degree.

It would be nice to be able to define a Queue as a CRD similar to a Function, which would allow things like the Pro queue worker and standard queue worker to be bundled under one resource type.

That, and it would be nice to see the things like queue capacity in k9s by simply typing :queue, but that's another story.

Current Behaviour

There is not a CRD for this right now.

Possible Solution

Steps to Reproduce (for bugs)

Context

Not DIY my own queue worker deployments, which can potentially cause drift from OF and may increase the need for troubleshooting if a DIY deployment is using a version with different behavior than the default queue worker.

Also, it makes it possible (perhaps likely) to have different functions using different queue workers that all have different images, because image tag wasn't exposed in a template or the like.

Your Environment