feat(gcp): add GCP plugin (#5229)

Add GCP as a supported plugin for dynamic host catalogs
This commit is contained in:
Elim Tsiagbey authored and GitHub committed 2024-11-08 11:09:29 -05:00
1 parent f227020b67
commit 514bcc19f6
8 files changed
+428 -4

No files matched your search

+2
View File
@@ -320,6 +320,8 @@ func New(ctx context.Context, conf *Config) (*Controller, error) {
if _, err := conf.RegisterPlugin(ctx, pluginType, client, []plugin.PluginType{plugin.PluginTypeHost}, plugin.WithDescription(fmt.Sprintf("Built-in %s host plugin", enabledPlugin.String()))); err != nil {
return nil, fmt.Errorf("error registering %s host plugin: %w", pluginType, err)
}
case enabledPlugin == base.EnabledPluginGCP && !c.conf.SkipPlugins:
fallthrough
case enabledPlugin == base.EnabledPluginAws && !c.conf.SkipPlugins:
pluginType := strings.ToLower(enabledPlugin.String())
client, cleanup, err := external_plugins.CreateHostPlugin(