From 700393b2376830926f907d3af07680681cf1760b Mon Sep 17 00:00:00 2001 From: Matthew Wong Date: Mon, 18 Jun 2018 08:42:41 -0400 Subject: [PATCH] Revert "Add namespace extended attributes to directory" --- cmd/nfs-client-provisioner/provisioner.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/nfs-client-provisioner/provisioner.go b/cmd/nfs-client-provisioner/provisioner.go index 79c051df..ccb0292b 100644 --- a/cmd/nfs-client-provisioner/provisioner.go +++ b/cmd/nfs-client-provisioner/provisioner.go @@ -26,7 +26,6 @@ import ( "github.com/golang/glog" "github.com/kubernetes-incubator/external-storage/lib/controller" - "github.com/pkg/xattr" "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/wait" @@ -66,9 +65,6 @@ func (p *nfsProvisioner) Provision(options controller.VolumeOptions) (*v1.Persis if err := os.MkdirAll(fullPath, 0777); err != nil { 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) path := filepath.Join(p.path, pvName)