Merge pull request #80904 from fredkan/fix-flexvolume-volumename-issue

Fix flexvolume volumename issue
This commit is contained in:
Kubernetes Prow Robot
2019-08-19 07:35:32 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -29,6 +29,6 @@ func logPrefix(plugin *flexVolumePlugin) string {
} }
func (plugin *pluginDefaults) GetVolumeName(spec *volume.Spec) (string, error) { func (plugin *pluginDefaults) GetVolumeName(spec *volume.Spec) (string, error) {
klog.Warning(logPrefix((*flexVolumePlugin)(plugin)), "using default GetVolumeName for volume ", spec.Name()) klog.V(4).Infof(logPrefix((*flexVolumePlugin)(plugin)), "using default GetVolumeName for volume ", spec.Name())
return spec.Name(), nil return spec.Name(), nil
} }

View File

@@ -134,7 +134,7 @@ func (plugin *flexVolumePlugin) GetVolumeName(spec *volume.Spec) (string, error)
return "", err return "", err
} }
klog.Warning(logPrefix(plugin), "GetVolumeName is not supported yet. Defaulting to PV or volume name: ", name) klog.V(4).Infof(logPrefix(plugin), "GetVolumeName is not supported yet. Defaulting to PV or volume name: ", name)
return name, nil return name, nil
} }