Feature: Allow to load a core plugin as external (#75157)

This commit is contained in:
Andres Martinez Gotor
2023-09-22 10:50:13 +02:00
committed by GitHub
parent e0659c05da
commit 61cdfba87a
9 changed files with 139 additions and 0 deletions
@@ -33,6 +33,9 @@ func ProvideDiscoveryStage(cfg *config.Cfg, pf finder.Finder, pr registry.Servic
func(_ context.Context, _ plugins.Class, b []*plugins.FoundBundle) ([]*plugins.FoundBundle, error) {
return NewDisablePluginsStep(cfg).Filter(b)
},
func(_ context.Context, c plugins.Class, b []*plugins.FoundBundle) ([]*plugins.FoundBundle, error) {
return NewAsExternalStep(cfg).Filter(c, b)
},
},
})
}