Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions pkg/router/template/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,13 @@ func (r *templateRouter) dynamicallyAddRoute(backendKey ServiceAliasConfigKey, r
log.V(4).Info("dynamically adding route backend", "backendKey", backendKey)
r.dynamicConfigManager.Register(backendKey, route)

// Fully skipping DCM for now when adding or changing routes,
// should be reincluded along with the fix for https://issues.redhat.com/browse/OCPBUGS-77344
// Returning from within an always true condition makes linter happy.
if true {
return false
}

// If no initial sync was done, don't try to dynamically add the
// route as we will need a reload anyway.
if !r.synced {
Expand Down Expand Up @@ -830,6 +837,13 @@ func (r *templateRouter) dynamicallyAddRoute(backendKey ServiceAliasConfigKey, r
// Note: The config should have been synced at least once initially and
// the caller needs to acquire a lock [and release it].
func (r *templateRouter) dynamicallyRemoveRoute(backendKey ServiceAliasConfigKey, route *routev1.Route) bool {
// Fully skipping DCM for now when adding or changing routes,
// should be reincluded along with the fix for https://issues.redhat.com/browse/OCPBUGS-77344
// Returning from within an always true condition makes linter happy.
if true {
return false
}

if r.dynamicConfigManager == nil || !r.synced {
return false
}
Expand Down