Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix space issue in volumePath with vSphere Cloud Provider #38338

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions pkg/volume/vsphere_volume/vsphere_volume.go
Expand Up @@ -20,6 +20,7 @@ import (
"fmt"
"os"
"path"
"strings"

"github.com/golang/glog"
"k8s.io/kubernetes/pkg/api/resource"
Expand Down Expand Up @@ -125,6 +126,7 @@ func (plugin *vsphereVolumePlugin) ConstructVolumeSpec(volumeName, mountPath str
if err != nil {
return nil, err
}
volumePath = strings.Replace(volumePath, "\\040", " ", -1)
glog.V(5).Infof("vSphere volume path is %q", volumePath)
vsphereVolume := &v1.Volume{
Name: volumeName,
Expand Down