[Feature] limit plugin to pve host or cluster
I've not found any way to do that. ( but I'm no programer :) )
Describe the feature
any way to limit plugin to load only on particular pve host or cluster.
Use Case
currently I've connected to pegaprox one cluster and 3 standalone pve nodes. and when I enable plugin ( tested docker/swarm and opnSense ) to connect VMs in cluster I can see this plugin when I'm connected to standalone host and vice versa.
this is very confusing, when I'm working on standalone node and see docker or opnSense from cluster :(
Noted — scoping a plugin to specific hosts/clusters so a standalone node doesn't surface the cluster's Docker/OPNsense links makes sense; that mixed setup is exactly where it gets confusing. No promises on timing but it's on the list, thanks for flagging it.
We're a volunteer effort kept alive by backers — if PegaProx is handy in your setup, https://opencollective.com/pegaprox 🙏
Built, on Testing. Thanks for the patience - and you did not need to be a programmer to describe this well, the "standalone node showing the cluster's Docker links" detail is what made it obvious.
A plugin now carries a list of clusters it belongs to. Nothing selected means every cluster, which is where every plugin starts and what every existing installation keeps, so nothing changes for anyone who does not touch it. Set it in Settings -> Server -> Plugins: each plugin has a "Show on" row with one button per cluster (it only appears when you have more than one, so a single-cluster setup stays uncluttered).
The filter runs in both layouts - the tab strip in Modern and the plugin list in Cloud - so a plugin limited to your cluster stops appearing while you are on one of the three standalone nodes, and the other way round.
Two decisions you may want to know about:
- The cluster ids are not checked against the live cluster list when you save. A cluster can be offline, or added later, and silently dropping an id would widen the scope back to everything the next time somebody hit save. So an unknown id just means "this plugin shows nowhere" until that cluster exists again.
- The scope survives enabling and disabling the plugin. That row gets rewritten on every toggle, and losing the scope there would have put the plugin back on all four of your nodes the first time you flicked the switch.
This is per cluster, not per node. For your setup that is the same thing - the three standalone PVE hosts are three separate entries - but if you ever want a plugin on one node of a multi-node cluster, that is a different and bigger change.
hi mkellermann97 thx for this. I'll test this asap and let you know about result.
Plugins can now be limited to specific clusters: in Settings -> Server -> Plugins each plugin has a "Show on" row with one button per cluster, and leaving it empty keeps the plugin everywhere as before. A plugin limited to your cluster no longer shows its tab while you are on one of the standalone nodes, and the other way round. This ships in 1.3.0.
PegaProx runs on donations, https://opencollective.com/pegaprox if you want to chip in.
Marcus
work perfect. plugins are visible only on selected nodes/clusters.
thx