File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
pkg/router/template/configmanager/haproxy Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -214,15 +214,15 @@ func (cm *haproxyConfigManager) AddBlueprint(route *routeapi.Route) {
214214 newRoute .Spec .Host = r .Spec .Host
215215 if ! reflect .DeepEqual (r , newRoute ) {
216216 updated = true
217- blueprints = append (blueprints , route . DeepCopy () )
217+ blueprints = append (blueprints , newRoute )
218218 continue
219219 }
220220 }
221221 blueprints = append (blueprints , r )
222222 }
223223
224224 if ! routeExists {
225- blueprints = append (blueprints , route . DeepCopy () )
225+ blueprints = append (blueprints , newRoute )
226226 updated = true
227227 }
228228
@@ -234,7 +234,7 @@ func (cm *haproxyConfigManager) AddBlueprint(route *routeapi.Route) {
234234 cm .blueprintRoutes = blueprints
235235 cm .lock .Unlock ()
236236
237- cm .provisionRoutePool (route )
237+ cm .provisionRoutePool (newRoute )
238238}
239239
240240// RemoveBlueprint removes a route blueprint.
@@ -264,7 +264,7 @@ func (cm *haproxyConfigManager) RemoveBlueprint(route *routeapi.Route) {
264264 cm .blueprintRoutes = blueprints
265265 cm .lock .Unlock ()
266266
267- cm .removeRoutePool (route )
267+ cm .removeRoutePool (deletedRoute )
268268}
269269
270270// Register registers an id with an expected haproxy backend for a route.
You can’t perform that action at this time.
0 commit comments