Update HostFilteringOptions
based on K8s Ingresses
#1824
-
When using the Kubernetes controller, is there a way to have it reflect the hosts it detects on We currently (without the controller) set the At quick glance it doesn't look like there's anything built in that does this. I assume it would require a custom I have an idea how to implement the former by injecting Any ideas? Thinking about this a bit more... I don't suppose this actually needs to be limited to the Kubernetes case. It feels like something that can be useful all around, opt-in of course |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Triage: this seems like it should be doable once #1734 is merged. Essentially you would need to listen to the config change and look for hosts, then trigger the |
Beta Was this translation helpful? Give feedback.
-
Right. I guess I was mainly trying to figure out what I'd use for the change token source. I guess I'd use a cancellation change token source and trigger it from the config notifier. Seems doable. Cool |
Beta Was this translation helpful? Give feedback.
Triage: this seems like it should be doable once #1734 is merged.
Essentially you would need to listen to the config change and look for hosts, then trigger the
IOptionsMonitor
which will update theHostFilteringMiddleware
(assuming that's what you want).