Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nfs-subdir-external-provisioner
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rancher商店
nfs-subdir-external-provisioner
Commits
c2780fa7
Commit
c2780fa7
authored
Apr 26, 2017
by
Jackie Li
Committed by
kmova
Sep 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix spell error & add travis build
(cherry picked from commit c916b18425c3e502406f2abd18532f8c8053e811)
parent
a48c8119
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
README.md
README.md
+1
-1
provisioner.go
cmd/nfs-client-provisioner/provisioner.go
+1
-1
deployment.yaml
deploy/deployment.yaml
+1
-1
No files found.
README.md
View file @
c2780fa7
...
@@ -12,4 +12,4 @@
...
@@ -12,4 +12,4 @@
-
check the folder and file "SUCCESS" created
-
check the folder and file "SUCCESS" created
-
`kubectl delete -f deploy/test-pod.yaml`
-
`kubectl delete -f deploy/test-pod.yaml`
-
`kubectl delete -f deploy/test-claim.yaml`
-
`kubectl delete -f deploy/test-claim.yaml`
-
check the folder renamed to
`archi
eve
-???`
-
check the folder renamed to
`archi
ved
-???`
cmd/nfs-client-provisioner/provisioner.go
View file @
c2780fa7
...
@@ -94,7 +94,7 @@ func (p *nfsProvisioner) Delete(volume *v1.PersistentVolume) error {
...
@@ -94,7 +94,7 @@ func (p *nfsProvisioner) Delete(volume *v1.PersistentVolume) error {
path
:=
volume
.
Spec
.
PersistentVolumeSource
.
NFS
.
Path
path
:=
volume
.
Spec
.
PersistentVolumeSource
.
NFS
.
Path
pvName
:=
filepath
.
Base
(
path
)
pvName
:=
filepath
.
Base
(
path
)
oldPath
:=
filepath
.
Join
(
mountPath
,
pvName
)
oldPath
:=
filepath
.
Join
(
mountPath
,
pvName
)
archivePath
:=
filepath
.
Join
(
mountPath
,
"archi
e
ved-"
+
pvName
)
archivePath
:=
filepath
.
Join
(
mountPath
,
"archived-"
+
pvName
)
glog
.
V
(
4
)
.
Infof
(
"archiving path %s to %s"
,
oldPath
,
archivePath
)
glog
.
V
(
4
)
.
Infof
(
"archiving path %s to %s"
,
oldPath
,
archivePath
)
return
os
.
Rename
(
oldPath
,
archivePath
)
return
os
.
Rename
(
oldPath
,
archivePath
)
}
}
...
...
deploy/deployment.yaml
View file @
c2780fa7
...
@@ -13,7 +13,7 @@ spec:
...
@@ -13,7 +13,7 @@ spec:
spec
:
spec
:
containers
:
containers
:
-
name
:
nfs-client-provisioner
-
name
:
nfs-client-provisioner
image
:
quay.io/
jackieli
/nfs-client-provisioner:v1
image
:
quay.io/
external_storage
/nfs-client-provisioner:v1
volumeMounts
:
volumeMounts
:
-
name
:
nfs-client-root
-
name
:
nfs-client-root
mountPath
:
/persistentvolumes
mountPath
:
/persistentvolumes
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment