Skip to content

Commit 16bc17d

Browse files
committed
Fix: preserve local cluster domain filtering
Pass dashboard domain filters to Homer config generator for single-cluster mode. Multi-cluster HTTPRoutes use per-cluster filters from annotations.
1 parent 28fcc76 commit 16bc17d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/controller/dashboard_controller.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -898,9 +898,9 @@ func (r *DashboardReconciler) createConfigMap(ctx context.Context, homerConfig *
898898
}
899899
}
900900

901-
// Don't pass domain filters since HTTPRoutes are already filtered by ClusterManager
902-
// and we want to show all hostnames from each HTTPRoute
903-
return homer.CreateConfigMapWithHTTPRoutes(homerConfig, dashboard.Name, dashboard.Namespace, filteredIngressList, filteredHTTPRoutes, dashboard, nil)
901+
// Pass domain filters for single-cluster mode (local cluster uses dashboard-level filters)
902+
// Multi-cluster HTTPRoutes already have domain filters stored in annotations
903+
return homer.CreateConfigMapWithHTTPRoutes(homerConfig, dashboard.Name, dashboard.Namespace, filteredIngressList, filteredHTTPRoutes, dashboard, dashboard.Spec.DomainFilters)
904904
}
905905

906906
return homer.CreateConfigMap(homerConfig, dashboard.Name, dashboard.Namespace, filteredIngressList, dashboard)

0 commit comments

Comments
 (0)