mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
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 ```
This commit is contained in:
commit
7100d00491
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user