Skip to content

Commit 7100d00

Browse files
author
Kubernetes Submit Queue
authored
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. #50843 #51123 Please review, thanks! ```release-note NONE ```
2 parents b8fde17 + 8b5b2e9 commit 7100d00

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/volume/flexvolume/plugin.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ func NewFlexVolumePlugin(pluginDir, name string) (volume.VolumePlugin, error) {
8383

8484
// Init is part of the volume.VolumePlugin interface.
8585
func (plugin *flexVolumePlugin) Init(host volume.VolumeHost) error {
86+
plugin.host = host
8687
// Hardwired 'success' as any errors from calling init() will be caught by NewFlexVolumePlugin()
8788
return nil
8889
}

0 commit comments

Comments
 (0)