-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[3.11 router] dynamic configuration manager support for custom configuration templates #21170
Comments
@alexcern cool. Yeah, adding support for custom templates/annotations was something that we had punted and would love to get a PR for this. Thinking of this from a general configuration standpoint, something that encompasses both of your options could be useful.
/cc @ironcladlou Aside: The configmap idea from above got me thinking it might be worth looking at having some of the router options be dynamically update-able. Some of the options like |
@openshift/sig-network-edge |
Thanks @ramr The Ideally we would set this together with the template itself, since the list of annotations to match is exactly the list of annotations used by the template to vary the configuration. But I could not think of a fine way to integrate this in the template definition. |
…nshift#21170 Adds a possibility to configure a list of annotations that need to vary the HAProxy configuration, and adds a route annotation that disables matching routes to existing "blueprints"
…nshift#21170 Adds a possibility to configure a list of annotations that need to vary the HAProxy configuration, and adds a route annotation that disables matching routes to existing "blueprints"
…nshift#21170 Adds a possibility to configure a list of annotations that need to vary the HAProxy configuration, and adds a route annotation that disables matching routes to existing "blueprints"
…nshift#21170 Adds a possibility to configure a list of annotations that need to vary the HAProxy configuration, and adds a route annotation that disables matching routes to existing "blueprints"
…nshift#21170 Adds a possibility to configure a list of annotations that need to vary the HAProxy configuration, and adds a route annotation that disables matching routes to existing "blueprints"
@ramr Ready for a review when possible :) |
@isantospardo thanks for the PR ... sorry for the delay in reviewing - have been out of commission for a while. I left some comments/requested some changes on the PR. Thanks again. |
…nshift#21170 Adds a possibility to configure a list of annotations that need to vary the HAProxy configuration, and adds a route annotation that disables matching routes to existing "blueprints"
…nshift#21170 Adds a possibility to configure a list of annotations that need to vary the HAProxy configuration, and adds a route annotation that disables matching routes to existing "blueprints"
…nshift#21170 Adds a possibility to configure a list of annotations that need to vary the HAProxy configuration, and adds a route annotation that disables matching routes to existing "blueprints"
…nshift#21170 Adds a possibility to configure a list of annotations that need to vary the HAProxy configuration, and adds a route annotation that disables matching routes to existing "blueprints"
…nshift#21170 Adds a possibility to configure a list of annotations that need to vary the HAProxy configuration, and adds a route annotation that disables matching routes to existing "blueprints"
…nshift#21170 Adds a possibility to configure a list of annotations that need to vary the HAProxy configuration, and adds a route annotation that disables matching routes to existing "blueprints"
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The router dynamic configuration manager introduced by #19073 for the upcoming 3.11 release is a very welcome addition, many thanks @ramr !
We would be interested to make it work with customized router templates when the customization involves new, custom annotations.
Version
3.11 alpha
Steps To Reproduce
backend
definitions:my-custom-annotation=true
Current Result
my-custom-annotation
is not taken into account when matching the new annotated route to a blueprint. Thus a blueprint without the annotation is used, and the custom configuration associated withmy-custom-annotation
is not applied.Expected Result
A blueprint matching the custom annotation is selected, or no blueprint with that annotation is found and router configuration is reloaded completely to enforce the custom configuration.
Additional Information
It seems to me this there could be two ways to support a customized router template with the dynamic manager:
0
for the minimum value ofROUTER_BLUEPRINT_ROUTE_POOL_SIZE
inorigin/pkg/cmd/infra/router/template.go
Line 169 in 4295f8b
origin/pkg/router/template/configmanager/haproxy/manager.go
Lines 1095 to 1116 in 4295f8b
I would be happy to submit a PR for either option.
The text was updated successfully, but these errors were encountered: