how to register cluster in a plugin ?

If we develop a plugin and want to register a resource we can use $page->resource([XXX:class])
but how to register a Cluster ?
Solution
add new clusterDiscovery in our Plugin , like ;
$panel->discoverClusters(in: __DIR__.'/Filament/Clusters', for: 'Namespace')
Was this page helpful?