Merge pull request #30150 from anusha-ragunathan/pluginv1_vol
Fix pluginv1 Windows volumes Upstream-commit: 60fb79e0dc6b81e2f618759599b6f15a5222b8ce Component: engine
This commit is contained in:
@ -78,12 +78,6 @@ type Plugin struct {
|
||||
handlersRun bool
|
||||
}
|
||||
|
||||
// BasePath returns the path to which all paths returned by the plugin are relative to.
|
||||
// For v1 plugins, this always returns the host's root directory.
|
||||
func (p *Plugin) BasePath() string {
|
||||
return "/"
|
||||
}
|
||||
|
||||
// Name returns the name of the plugin.
|
||||
func (p *Plugin) Name() string {
|
||||
return p.name
|
||||
|
||||
7
components/engine/pkg/plugins/plugins_linux.go
Normal file
7
components/engine/pkg/plugins/plugins_linux.go
Normal file
@ -0,0 +1,7 @@
|
||||
package plugins
|
||||
|
||||
// BasePath returns the path to which all paths returned by the plugin are relative to.
|
||||
// For v1 plugins, this always returns the host's root directory.
|
||||
func (p *Plugin) BasePath() string {
|
||||
return "/"
|
||||
}
|
||||
8
components/engine/pkg/plugins/plugins_windows.go
Normal file
8
components/engine/pkg/plugins/plugins_windows.go
Normal file
@ -0,0 +1,8 @@
|
||||
package plugins
|
||||
|
||||
// BasePath returns the path to which all paths returned by the plugin are relative to.
|
||||
// For Windows v1 plugins, this returns an empty string, since the plugin is already aware
|
||||
// of the absolute path of the mount.
|
||||
func (p *Plugin) BasePath() string {
|
||||
return ""
|
||||
}
|
||||
Reference in New Issue
Block a user