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
513433d4
Commit
513433d4
authored
Oct 08, 2020
by
Hanna Bledai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README, remove dublicated lines
parent
8433ff96
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
README.md
README.md
+1
-1
provisioner.go
cmd/nfs-subdir-external-provisioner/provisioner.go
+0
-2
No files found.
README.md
View file @
513433d4
...
@@ -109,7 +109,7 @@ You may also want to change the PROVISIONER_NAME above from ``fuseim.pri/ifs`` t
...
@@ -109,7 +109,7 @@ You may also want to change the PROVISIONER_NAME above from ``fuseim.pri/ifs`` t
**Step 5: Deploying your storage class**
**Step 5: Deploying your storage class**
***
P
araments:**
*
***
p
araments:**
*
| Name | Description | Default |
| Name | Description | Default |
|------|-------------|:--------:|
|------|-------------|:--------:|
...
...
cmd/nfs-subdir-external-provisioner/provisioner.go
View file @
513433d4
...
@@ -168,7 +168,6 @@ func (p *nfsProvisioner) Delete(volume *v1.PersistentVolume) error {
...
@@ -168,7 +168,6 @@ func (p *nfsProvisioner) Delete(volume *v1.PersistentVolume) error {
// Otherwise, archive it.
// Otherwise, archive it.
archiveOnDelete
,
exists
:=
storageClass
.
Parameters
[
"archiveOnDelete"
]
archiveOnDelete
,
exists
:=
storageClass
.
Parameters
[
"archiveOnDelete"
]
if
exists
{
if
exists
{
if
exists
{
archiveBool
,
err
:=
strconv
.
ParseBool
(
archiveOnDelete
)
archiveBool
,
err
:=
strconv
.
ParseBool
(
archiveOnDelete
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
...
@@ -177,7 +176,6 @@ func (p *nfsProvisioner) Delete(volume *v1.PersistentVolume) error {
...
@@ -177,7 +176,6 @@ func (p *nfsProvisioner) Delete(volume *v1.PersistentVolume) error {
return
os
.
RemoveAll
(
oldPath
)
return
os
.
RemoveAll
(
oldPath
)
}
}
}
}
}
archivePath
:=
filepath
.
Join
(
mountPath
,
"archived-"
+
volume
.
Name
)
archivePath
:=
filepath
.
Join
(
mountPath
,
"archived-"
+
volume
.
Name
)
glog
.
V
(
4
)
.
Infof
(
"archiving path %s to %s"
,
oldPath
,
archivePath
)
glog
.
V
(
4
)
.
Infof
(
"archiving path %s to %s"
,
oldPath
,
archivePath
)
...
...
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