Commit Graph

19 Commits

Author SHA1 Message Date
Xing Yang
0c1faac468 Update VolumeSnapshot CRD version to v1beta
preserveUnknownField set to false, comments updates, adding pull request annotation
more comment updates
VolumeSnapshot comments
rename to VolumeSnapshotClassName
adding license
2019-10-24 16:33:52 -07:00
xing-yang
712a3341d9 Verify PV/PVC binding and driver 2019-10-08 04:18:38 +00:00
Xing Yang
e647a80298 Add deletion secret as annotation to content 2019-09-04 20:00:47 -07:00
zhucan
26f95af09c fix TODO use time.Time for createSnapshot & solute conflict 2019-04-30 16:39:12 +08:00
Kubernetes Prow Robot
9708a1b090 Merge pull request #75 from wackxu/pvclister
add pvcLister to snapshot controller
2019-01-02 07:17:24 -08:00
Xing Yang
0cf36adb91 Add new reserved prefixed parameter keys
This PR adds new reserved prefixed parameter keys which are stripped
out of parameter list, and adds deprecation notice for old keys and
keep their behavior the same.

```
csiParameterPrefix = "csi.storage.k8s.io/"
prefixedSnapshotterSecretNameKey      = csiParameterPrefix + "snapshotter-secret-name"
prefixedSnapshotterSecretNamespaceKey = csiParameterPrefix + "snapshotter-secret-namespace"
```
2018-12-03 17:38:53 -08:00
xushiwei
85504e1220 add pvcLister to snapshot controller
This reverts commit 96b6f495d3.
2018-11-30 17:19:47 +08:00
Xing Yang
96b6f495d3 Revert "add pvcLister to snapshot controller" 2018-11-27 19:38:09 -05:00
k8s-ci-robot
a40dc65b96 Merge pull request #72 from wackxu/pvclister
add pvcLister to snapshot controller
2018-11-27 11:58:37 -08:00
Xing Yang
ea17039454 Add Finalizer for VolumeSnapshot/VolumeSnapshotContent
This PR adds a Finalizer for VolumeSnapshotContent.
If the VolumeSnapshotContent is bound to a VolumeSnapshot,
the VolumeSnapshotContent is being used and cannot be
deleted.
This PR also adds a Finalizer for VolumeSnapshot.
If a volume is being created from the snapshot,
the VolumeSnapshot is being used and cannot be deleted.
2018-11-27 10:35:44 -08:00
xushiwei
e4997e5fb8 add pvcLister to snapshot controller 2018-11-27 21:43:09 +08:00
Jing Xu
96e3bd1818 Add volumesnapshot content deletion policy
This PR adds DeletionPolicy which describes a policy for end-of-life maintenance of volume snapshot contents.
There are two types of policies, delete and retain. By default, the
policy is delete. In this case, when volume snaphsot is deleted, the
volume snapshot content for it should be deleted, as well as the
physical snapshot. If the policy is set the retain, the volume snapshot
content will remain even if the volume snapshot it binds to is deleted.
2018-11-19 17:15:07 -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
Michelle Au
0decedb0fa Update unit tests and disable broken status unit tests 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
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
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