Commit 7100d004 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #51342 from wongma7/flex-nil

Automatic merge from submit-queue Set flexvolumeplugin.host so that it's not nil @TerraTech @MikaelCluseau @chakri-nelluri @verult I assume this line was removed inadvertently, without plugin.host set the flexvolume silently fails at Mount/Attach* time. https://github.com/kubernetes/kubernetes/pull/50843 https://github.com/kubernetes/kubernetes/issues/51123 Please review, thanks! ```release-note NONE ```
parents b8fde17f 8b5b2e99
...@@ -83,6 +83,7 @@ func NewFlexVolumePlugin(pluginDir, name string) (volume.VolumePlugin, error) { ...@@ -83,6 +83,7 @@ func NewFlexVolumePlugin(pluginDir, name string) (volume.VolumePlugin, error) {
// Init is part of the volume.VolumePlugin interface. // Init is part of the volume.VolumePlugin interface.
func (plugin *flexVolumePlugin) Init(host volume.VolumeHost) error { func (plugin *flexVolumePlugin) Init(host volume.VolumeHost) error {
plugin.host = host
// Hardwired 'success' as any errors from calling init() will be caught by NewFlexVolumePlugin() // Hardwired 'success' as any errors from calling init() will be caught by NewFlexVolumePlugin()
return nil return nil
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment