Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
velero-plugin
Overview
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
Administrator
velero-plugin
Commits
9ecce3e2
Commit
9ecce3e2
authored
Jun 30, 2019
by
Shuwei Hao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix FlexVolume options volumeId to VolumeId and update README.md
parent
390fa616
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
README.md
+9
-0
pkg/alibabacloud/volume_snapshotter.go
+4
-4
No files found.
README.md
View file @
9ecce3e2
...
@@ -125,6 +125,15 @@ For more information, see [the AlibabaCloud documentation on RAM users guides][1
...
@@ -125,6 +125,15 @@ For more information, see [the AlibabaCloud documentation on RAM users guides][1
kubectl apply -f install/velero.yaml
kubectl apply -f install/velero.yaml
```
```
4.
Cleanup velero installation
Run the following command to cleanup the velero installation
```
kubectl delete namespace/velero clusterrolebinding/velero
kubectl delete crds -l component=velero
```
## Installing the nginx example (optional)
## Installing the nginx example (optional)
1.
nginx example without persistent volumes
1.
nginx example without persistent volumes
...
...
pkg/alibabacloud/volume_snapshotter.go
View file @
9ecce3e2
...
@@ -296,10 +296,10 @@ func getEBSDiskID(pv *v1.PersistentVolume) (string, error) {
...
@@ -296,10 +296,10 @@ func getEBSDiskID(pv *v1.PersistentVolume) (string, error) {
return
""
,
err
return
""
,
err
}
}
options
:=
pv
.
Spec
.
FlexVolume
.
Options
options
:=
pv
.
Spec
.
FlexVolume
.
Options
if
options
==
nil
||
options
[
"
v
olumeId"
]
==
""
{
if
options
==
nil
||
options
[
"
V
olumeId"
]
==
""
{
return
""
,
errors
.
New
(
"spec.FlexVolume.Options['
v
olumeId'] not found"
)
return
""
,
errors
.
New
(
"spec.FlexVolume.Options['
V
olumeId'] not found"
)
}
}
return
options
[
"
v
olumeId"
],
nil
return
options
[
"
V
olumeId"
],
nil
}
}
return
""
,
nil
return
""
,
nil
}
}
...
@@ -323,7 +323,7 @@ func setEBSDiskID(pv *v1.PersistentVolume, diskID string) error {
...
@@ -323,7 +323,7 @@ func setEBSDiskID(pv *v1.PersistentVolume, diskID string) error {
options
=
map
[
string
]
string
{}
options
=
map
[
string
]
string
{}
pv
.
Spec
.
FlexVolume
.
Options
=
options
pv
.
Spec
.
FlexVolume
.
Options
=
options
}
}
options
[
"
v
olumeId"
]
=
diskID
options
[
"
V
olumeId"
]
=
diskID
return
nil
return
nil
}
}
...
...
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