From c2780fa773378973c2440a6cdec84d5ef2d2cd2e Mon Sep 17 00:00:00 2001 From: Jackie Li Date: Wed, 26 Apr 2017 22:06:03 +0100 Subject: [PATCH] fix spell error & add travis build (cherry picked from commit c916b18425c3e502406f2abd18532f8c8053e811) --- README.md | 2 +- cmd/nfs-client-provisioner/provisioner.go | 2 +- deploy/deployment.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5d2638d3..1d7c0e45 100644 --- a/README.md +++ b/README.md @@ -12,4 +12,4 @@ - check the folder and file "SUCCESS" created - `kubectl delete -f deploy/test-pod.yaml` - `kubectl delete -f deploy/test-claim.yaml` -- check the folder renamed to `archieve-???` +- check the folder renamed to `archived-???` diff --git a/cmd/nfs-client-provisioner/provisioner.go b/cmd/nfs-client-provisioner/provisioner.go index 06ccefae..3ca2e918 100644 --- a/cmd/nfs-client-provisioner/provisioner.go +++ b/cmd/nfs-client-provisioner/provisioner.go @@ -94,7 +94,7 @@ func (p *nfsProvisioner) Delete(volume *v1.PersistentVolume) error { path := volume.Spec.PersistentVolumeSource.NFS.Path pvName := filepath.Base(path) oldPath := filepath.Join(mountPath, pvName) - archivePath := filepath.Join(mountPath, "archieved-"+pvName) + archivePath := filepath.Join(mountPath, "archived-"+pvName) glog.V(4).Infof("archiving path %s to %s", oldPath, archivePath) return os.Rename(oldPath, archivePath) } diff --git a/deploy/deployment.yaml b/deploy/deployment.yaml index e7bd5bf1..4105bafb 100644 --- a/deploy/deployment.yaml +++ b/deploy/deployment.yaml @@ -13,7 +13,7 @@ spec: spec: containers: - name: nfs-client-provisioner - image: quay.io/jackieli/nfs-client-provisioner:v1 + image: quay.io/external_storage/nfs-client-provisioner:v1 volumeMounts: - name: nfs-client-root mountPath: /persistentvolumes