<!-- What do you want to happen? -->

Currently, it doesn't seem possible for a plugin to extend the available load balancing algorithms that can be used. Instead, operators needs to fork, rebuild and deploy the project, or ninja-mount lua files, overwriting source code at runtime, both of which seems error prone and hard. 

But, there's lots of interest in new or different load balancing algorithms for ingress-nginx, a lot of which haven't made it into the core. https://github.com/kubernetes/ingress-nginx/pull/9239 and https://github.com/kubernetes/ingress-nginx/pull/9025 are both attempts to add new algorithms that could have been plugins. Personally,  I have all sorts of weird ideas I want to try for my own load balancing problems, and I'm also aware of several different private initiatives that do the same. 

It'd be great if we could add new implementations to the list of available implementations, and then access all annotations inside a plugin to power it. 

And finally, for bonus points, its really hard to test plugins outside this repo, it'd be really great to improve support for that as well.
Add plugin hook for adding new load balancing algorithms
This is a GitHub Issue
repo:ingress-nginx
owner:kubernetes
Title : Add plugin hook for adding new load balancing algorithms
Issue date:

--- start body ---
<!-- What do you want to happen? -->

Currently, it doesn't seem possible for a plugin to extend the available load balancing algorithms that can be used. Instead, operators needs to fork, rebuild and deploy the project, or ninja-mount lua files, overwriting source code at runtime, both of which seems error prone and hard. 

But, there's lots of interest in new or different load balancing algorithms for ingress-nginx, a lot of which haven't made it into the core. https://github.com/kubernetes/ingress-nginx/pull/9239 and https://github.com/kubernetes/ingress-nginx/pull/9025 are both attempts to add new algorithms that could have been plugins. Personally,  I have all sorts of weird ideas I want to try for my own load balancing problems, and I'm also aware of several different private initiatives that do the same. 

It'd be great if we could add new implementations to the list of available implementations, and then access all annotations inside a plugin to power it. 

And finally, for bonus points, its really hard to test plugins outside this repo, it'd be really great to improve support for that as well.
--- end body ---
