Propagate plugin execution dir to CreatePlugin (#2183)
* fix: Propagate plugin options to CreatePlugin Plugin options were previously only applied to the BuildPluginMap call, resulting in the plugin execution_dir variable being ineffective. Also add a test to verify functionality * fix: Support plugin execution_dir for all plugins Previously, only external host plugins would respect the plugin execution dir. Now, all uses of the embedded plugins respect the configuration.
This commit is contained in:
1 parent
5ef9496e0a
commit
d06ac0d370
5 files changed
+91
-1
No files matched your search
@@ -60,7 +60,7 @@ func CreateHostPlugin(
|
||||
}
|
||||
|
||||
// Create the plugin and cleanup func
|
||||
plugClient, cleanup, err := pluginutil.CreatePlugin(pluginMap[pluginType])
|
||||
plugClient, cleanup, err := pluginutil.CreatePlugin(pluginMap[pluginType], opts.withPluginOptions...)
|
||||
if err != nil {
|
||||
return nil, cleanup, err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user