Skip to content

Commit

Permalink
Merge pull request #51342 from wongma7/flex-nil
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
Kubernetes Submit Queue authored Aug 28, 2017
2 parents b8fde17 + 8b5b2e9 commit 7100d00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/volume/flexvolume/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ func NewFlexVolumePlugin(pluginDir, name string) (volume.VolumePlugin, error) {

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

0 comments on commit 7100d00

Please sign in to comment.