Skip to content
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

Add middleware feature #680

Open
mike-code opened this issue Sep 30, 2024 · 1 comment
Open

Add middleware feature #680

mike-code opened this issue Sep 30, 2024 · 1 comment

Comments

@mike-code
Copy link

Ingress resource supports backend-config-snippet annotation, however there is no convenient way to share the same logic (ie. snippet) across many Ingress resources.

The idea is to have a kind of "middleware" where you define backend-snippet in global ConfigMap and then load it via haproxy.org/middleware: run_me.

Note: the controller would have to watch configmap for changes and update all Ingress'es should the run_me function/logic change.

@oktalz
Copy link
Member

oktalz commented Oct 10, 2024

hi @mike-code,

for that purpose you can use backend CRD
we do not plan to add more options for snippets, since you can do the same with CRDs, and custom resources are better in basically every way (scheme, validation ...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants