You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move route host updating out of the unique_host plugin
Because we are now using the informer cache, having the plugins mutate
the passed in object is incorrect (the cache doesn't have that
modification). Instead, mutate the cache from the very beginning so that
we always have the router's preferred spec.host set.
Copy file name to clipboardExpand all lines: pkg/cmd/infra/router/router.go
+21-20Lines changed: 21 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -86,30 +86,31 @@ func (o *RouterSelection) Bind(flag *pflag.FlagSet) {
86
86
flag.StringVar(&o.ListenAddr, "listen-addr", cmdutil.Env("ROUTER_LISTEN_ADDR", ""), "The name of an interface to listen on to expose metrics and health checking. If not specified, will not listen. Overrides stats port.")
87
87
}
88
88
89
-
// RouteSelectionFunc returns a func that identifies the host for a route.
0 commit comments