Commit de8b13b9 by Matthew Wong Committed by kmova

Revert "Add namespace extended attributes to directory"

(cherry picked from commit 700393b2376830926f907d3af07680681cf1760b)
parent 2ad47976
...@@ -26,7 +26,6 @@ import ( ...@@ -26,7 +26,6 @@ import (
"github.com/golang/glog" "github.com/golang/glog"
"github.com/kubernetes-incubator/external-storage/lib/controller" "github.com/kubernetes-incubator/external-storage/lib/controller"
"github.com/pkg/xattr"
"k8s.io/api/core/v1" "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/wait" "k8s.io/apimachinery/pkg/util/wait"
...@@ -66,9 +65,6 @@ func (p *nfsProvisioner) Provision(options controller.VolumeOptions) (*v1.Persis ...@@ -66,9 +65,6 @@ func (p *nfsProvisioner) Provision(options controller.VolumeOptions) (*v1.Persis
if err := os.MkdirAll(fullPath, 0777); err != nil { if err := os.MkdirAll(fullPath, 0777); err != nil {
return nil, errors.New("unable to create directory to provision new pv: " + err.Error()) return nil, errors.New("unable to create directory to provision new pv: " + err.Error())
} }
if err := xattr.Set(fullPath, "namespace", []byte(pvcNamespace)); err != nil {
return nil, errors.New("unable to set extended attributes on directory to provision new pv: " + err.Error())
}
os.Chmod(fullPath, 0777) os.Chmod(fullPath, 0777)
path := filepath.Join(p.path, pvName) path := filepath.Join(p.path, pvName)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment