Commit Graph

165 Commits

Author SHA1 Message Date
zhucan
1ee21c1de5 Add event for snapshotting in progress
Signed-off-by: zhuc <zhucan@xsky.com>
2020-04-30 10:26:27 +08:00
ialidzhikov
d1330389c5 Nit: fix typos
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2020-04-26 23:43:15 +03:00
xiangqian
45324b7a67 revamp find content logic to fix 290 291 292
add snapshot source validation in syncSnapshot
add content source validation in syncContent
2020-04-20 21:29:30 -07:00
xing-yang
f688d7baef Remove error status check 2020-04-03 18:34:57 +00:00
xing-yang
2295e6aea3 Add error status check in createSnapshotWrapper 2020-04-03 01:53:04 +00:00
xing-yang
9f382acd43 Address review comments 2020-04-02 14:23:08 +00:00
xing-yang
f32313bdb8 checkandUpdateContentStatusOperation should not call createSnapshotOperation 2020-04-02 14:23:08 +00:00
xing-yang
0189c77f5a Check final error 2020-04-02 14:23:08 +00:00
xing-yang
6ca7507bc3 Address review comments 2020-04-02 14:23:08 +00:00
xing-yang
7930dd261d Check error code DeadlineExceeded 2020-04-02 14:23:08 +00:00
xing-yang
aa2bc2fb9c Remove the unnecessary driver name check 2020-04-02 14:23:08 +00:00
xing-yang
4c38cc8c6e Remove VolumeSnapshotBeingCreated annotation after driver response 2020-04-02 14:23:08 +00:00
xing-yang
313507f866 Add AnnVolumeSnapshotBeingCreated 2020-04-02 14:23:08 +00:00
xing-yang
c82c8e0c7e Add a check to see if PVC has a finalizer 2020-04-02 02:01:52 +00:00
xing-yang
8ae4d0c278 Check if PVC is being used by a snapshot as source 2020-04-02 01:50:19 +00:00
Christian Huffman
25b65ea8a8 Moving nil check to correct location 2020-03-19 16:21:46 -04:00
Kubernetes Prow Robot
ac3ef99c2d Merge pull request #275 from huffmanca/update_snapshotclass_deletion
Allows VolumeSnapshot to be deleted if the class isn't found
2020-03-18 17:12:43 -07:00
Christian Huffman
91a55c0e13 Allows VolumeSnapshot to be deleted if the class isn't found 2020-03-18 16:54:59 -04:00
Christian Huffman
806ccc0b29 Include a nil check for the snapshotContent 2020-03-18 13:35:25 -04:00
Grant Griffiths
fe1c355fa9 Add more sidecar tests and cleanup sidecar code
Signed-off-by: Grant Griffiths <grant@portworx.com>
2020-03-04 20:30:45 -08:00
Grant Griffiths
9830b6ec23 Fix error check for checkandAddSnapshotFinalizers and add tests
Signed-off-by: Grant Griffiths <grant@portworx.com>
2020-03-04 10:48:16 -08:00
xing-yang
b154cc77e7 Add VolumeSnapshotBeingDeleted annotation to content 2020-02-28 18:10:20 +00:00
Christian Huffman
c3beea55ba Update CRDs to include additional get information 2020-02-27 09:52:36 -05:00
Kubernetes Prow Robot
883842f48f Merge pull request #252 from bells17/add-feature-listsnapshots-secrets2
Added the feature to use secrets of ListSnapshots
2020-02-20 18:28:32 -08:00
bells17
3c2baf4e96 Add comments 2020-02-21 00:44:44 +09:00
bells17
7cbcf6aa41 Fix log messages and error messages 2020-02-21 00:42:15 +09:00
bells17
8e9680affd Modify to upper case variable name from lower case for unit tests 2020-02-20 23:13:12 +09:00
bells17
dd390a3e38 Improve error messages 2020-02-20 01:09:40 +09:00
bells17
0a1579d0f2 Add support for list secret parameters to RemovePrefixedParameters 2020-02-20 01:00:22 +09:00
bells17
2045ef16ba Fix error message s/Delete/List/ 2020-02-19 20:22:26 +09:00
bells17
401732912f Improve error messages 2020-02-19 20:19:37 +09:00
Grant Griffiths
05efba2a30 Add more snapshot and content sync tests
Signed-off-by: Grant Griffiths <grant@portworx.com>
2020-02-18 14:46:39 -08:00
Grant Griffiths
7811e59803 Refactor delete test to use withSnapshotFinalizers function
Signed-off-by: Grant Griffiths <grant@portworx.com>
2020-02-12 15:44:54 -08:00
Grant Griffiths
13dee9bc89 Add snapshot controller delete test
Signed-off-by: Grant Griffiths <grant@portworx.com>
2020-02-10 14:04:28 -08:00
bells17
3b76de4999 Added the feature to use secrets of ListSnapshots 2020-02-10 11:56:47 +09:00
Alex Szakaly
fb6225dc41 fix: go module requirements for semantic versioning
This commit also adds the compatibility with dep (Go dependency
management tool) via symlink creation (same method applied in
kubernetes-csi/csi-test)

TODO: fix hack/update-generated-code.sh

Fixes issue #239.

Signed-off-by: Alex Szakaly <alex.szakaly@gmail.com>
2020-01-22 09:50:01 +01:00
xing-yang
824ce7f6c5 Remove PVC finalizer when no longer in use 2020-01-03 19:57:51 +00:00
Kubernetes Prow Robot
d5804d5d21 Merge pull request #224 from xing-yang/ready_in_sidecar
Stop calling CreateSnapshot when ReadyToUse is true
2020-01-02 07:21:40 -08:00
saad-ali
3173a1fb35 Introduce metrics library 2019-12-30 16:37:11 -08:00
xing-yang
1ca3435c43 Check ReadyToUse in sidecar 2019-12-30 04:41:01 +00:00
xing-yang
6b179a5066 Address review comments 2019-12-24 14:42:06 +00:00
xing-yang
23bba14ef3 Address one more comment 2019-12-23 21:30:52 +00:00
xing-yang
37d5705019 Address review comments 2019-12-23 21:13:21 +00:00
xing-yang
29e69f4c67 Try to find content from store by key before searching thru the list 2019-12-23 20:13:03 +00:00
xing-yang
bf48d62ab5 Don't trigger content deletion if snapshot is nil 2019-12-23 20:13:03 +00:00
xing-yang
62d9ab547e Address review comments 2019-12-23 20:13:03 +00:00
xing-yang
0ac299cf77 Add a function needsUpdateSnapshotStatus 2019-12-23 20:13:03 +00:00
xing-yang
f2814e5a18 Address review comments 2019-12-23 20:13:03 +00:00
xing-yang
d4350943e2 Update snapshot controller 2019-12-23 20:13:03 +00:00
Grant Griffiths
33c896f6ff Update common controller tests after split controller
Signed-off-by: Grant Griffiths <grant@portworx.com>
2019-12-23 10:00:02 -08:00