Xing Yang
fddc5547f3
Use existing content name
...
If content name is already in snapshot object, just use it.
This may be the case for static provisioning. Otherwise construct
new name for content for dynamic provisioning.
2018-11-19 15:20:57 -08:00
k8s-ci-robot
799fb952e1
Merge pull request #61 from xing-yang/csi_snapshot_status
...
Call CreateSnapshot to check if snapshot is processed
2018-11-19 15:07:28 -08:00
Xing Yang
c01fb649f2
Call CreateSnapshot to check if snapshot is processed
...
This PR calls CreateSnapshot to check if the snapshot post-cut
processing (uploading) is complete and update status accordingly.
2018-11-19 13:02:21 -08:00
Cheng Xing
06b4d4ec0d
Updating generated API clients
2018-11-16 14:30:00 -08:00
Michelle Au
0decedb0fa
Update unit tests and disable broken status unit tests
2018-11-14 16:54:28 -08:00
Michelle Au
83c8c05a4a
Update snapshotter to use CSI spec 1.0. This breaks the snapshot handling of error and uploading status
2018-11-14 16:54:28 -08:00
Michelle Au
92f87c14e7
Update csi/v0 import to csi/
2018-11-14 13:25:09 -08:00
xushiwei
69335b15e7
fix some comment typo
2018-11-02 17:09:55 +08:00
Xing Yang
c422fbde7c
Switch to use TypedLocalObjectReference in core API
2018-10-17 10:38:17 -07:00
Xing Yang
58f71bef8c
Update snapshot class in the content spec
...
This PR sets the snapshot class and UID in the volume snapshot
content spec if one of them is not set. This is to make sure
that snapshot class is set in the content in the case of
static binding.
2018-09-24 12:40:01 -07:00
Jing Xu
c401b2331c
Handle the CSI driver in VolumeSnapshotContent does not match case
...
In VolumeSnapshotContent, if the CSI driver does not match the plugin's,
the controller should skip this content instead of always processing it.
This PR also add a few tests related to snapshot and content static
binding.
During binding, if content specify its bound snapshot uid and it
does not match the snapshot's uid, the content object and also the
physical snapshot will be deleted. In this case, the controller will
treat the content as an orphan content because its snapshot object does
not exist (deleted) any more.
2018-09-20 15:21:18 -07:00
Jing Xu
daaee085e5
Fix restore size type in snapshot content
...
Change the restore size to int64 for snapshot content. Also add the code
to update the restore size for snapshot content.
2018-09-18 12:26:18 -07:00
k8s-ci-robot
631b9dc996
Merge pull request #20 from wackxu/clean
...
snapshot api types fix
2018-09-14 14:23:38 -07:00
Xing Yang
8f65bb7f16
Merge pull request #25 from jingxu97/eventscheme
...
Add event scheme
2018-09-13 14:54:41 -04:00
Jing Xu
2141247565
Add event scheme
...
This PR adds the event scheme
2018-09-13 11:37:06 -07:00
Jing Xu
a6748068dd
Fix updating restore size issue
...
This PR fixed the issue of not updating the snapshot restore size after
snapshot is created. Before snapshot is ready, the returned size might
not be accurate. So we need to keep updating the snapshot size during
checking the snapshot status.
2018-09-07 10:07:59 -07:00
xushiwei 00425595
ae2be6651e
remove class store since we donot update it in controller
2018-09-06 11:08:58 +08:00
xushiwei 00425595
b5dff7f72f
snapshot api types cleanup
2018-09-06 09:48:41 +08:00
xushiwei 00425595
1f497d324f
address comments
2018-09-03 21:05:06 +08:00
wackxu
8d2504ad9c
add UT for snapshot controller
2018-08-30 21:32:24 +08:00
wackxu
b4d60c92a6
add test framework
2018-08-30 21:32:24 +08:00
wackxu
bd24010ed5
add UT for util.go
2018-08-30 21:32:24 +08:00
wackxu
0fa91a7df2
add UT for connection.go
2018-08-30 21:32:24 +08:00
xushiwei 00425595
62551068b1
update .gitignore
2018-08-30 21:32:24 +08:00
Xing Yang
17c7e1b8cf
Allow new discovered error to show up
2018-08-24 16:55:57 -07:00
Xing Yang
9f3146b285
Fix error when checking and updating snapshotclass
2018-08-24 16:20:06 -07:00
Xing Yang
25be5fdffc
shouldProcessSnapshot should return *VolumeSnapshot
...
Also rename shouldProcessSnapshot to checkAndUpdateSnapshotClass.
2018-08-24 07:01:29 -07:00
Xing Yang
a9dd5c8ff3
Address review comments
2018-08-23 12:17:01 -07:00
Xing Yang
de25b16b03
Fix a typo
2018-08-22 21:22:39 -07:00
Xing Yang
7140b77f2b
Change controller to use VolumeSnapshotClassName as pointer
2018-08-22 21:18:08 -07:00
Xing Yang
1893402c6a
Re-generate deepcopy file after VolumeSnapshotClass change
2018-08-22 20:09:22 -07:00
Xing Yang
7baa5bf288
Change VolumeSnapshotClassName to pointer to a string
2018-08-22 20:08:07 -07:00
Xing Yang
d95ff46ce1
Split GetClassFromVolumeSnapshot to two functions
...
This commit splits GetClassFromVolumeSnapshot to two functions,
GetSnapshotClass and SetDefaultSnapshotClass.
2018-08-22 13:41:32 -07:00
Xing Yang
61c67ae236
Change Size to RestoreSize in snapshot controller
2018-08-21 19:37:13 -07:00
Xing Yang
66b982d7e6
Re-generate deepcopy file
2018-08-21 19:34:26 -07:00
Xing Yang
233b7171de
Rename Size to RestoreSize
2018-08-21 19:33:27 -07:00
Xing Yang
84fc75e615
Modify controller to use resource.Quantity as size
2018-08-19 20:09:25 -07:00
Xing Yang
fb866ef23a
Use CreationName in CSIVolumeSnapshotSource in controller
2018-08-19 10:22:05 -07:00
Xing Yang
db9e97500e
Add generated deepcopy file
2018-08-19 10:14:37 -07:00
Xing Yang
9eb5892ca5
Use resource.Quantity for Size in API
2018-08-19 10:13:55 -07:00
Xing Yang
bfb7c69014
Set VolumeSnapshotClass in checkandBindSnapshotContent
...
go fmt fixes, detailed logging level, other small fixes
2018-08-19 09:10:21 -07:00
Jing Xu
870fd8ec8c
Handle snapshot error, get default storage class, and other small
...
changes
2018-08-17 14:19:40 -07:00
Xing Yang
3e12fd6a36
Update generated deepcopy file
2018-08-16 07:46:44 -07:00
Xing Yang
faf16a64c6
Change ResourceList to int64 in API
2018-08-16 07:45:26 -07:00
Xing Yang
1ee6dd2c21
Address review comments in controller
2018-08-15 20:56:14 -07:00
Xing Yang
afd80c565c
Add review comments in cmd and controller
2018-08-14 21:44:30 -07:00
Xing Yang
337564aeaa
Address review comments in the APIs.
2018-08-14 20:45:20 -07:00
xing-yang
2c3b68f52b
Handle Secrets in DeleteSnapshot
...
This PR handles secrets at DeleteSnapshot time.
2018-08-14 19:07:54 -07:00
xing-yang
da5647acbf
Add generated file
2018-08-14 19:07:54 -07:00
xing-yang
c22737270c
Add VolumeSnapshotClass to VolumeSnapshotContent
...
This PR adds VolumeSnapshotClass to VolumeSnapshotContent
and also adds snapshot size field.
2018-08-14 19:07:53 -07:00