Max Jonas Werner
04848c755a
chore: remove unused parameter from util funcs; add unit test
...
Added the unit tests from
https://github.com/kubernetes/kubernetes/blob/master/pkg/util/slice/slice_test.go
(minus modifier tests) so we can be sure to not change behaviour.
2020-07-22 09:36:22 +02:00
Max Jonas Werner
1f13709413
chore: get rid of k8s.io/kubernetes dep
...
This dependency is problematic because of the many replaces it brings
with it. This makes it hard to import external-snapshotter in 3rd
party projects without having a lot of `replace` directives in those
projects as well.
The only usage of that import was to get two very simple utility
functions so I copied them over to this repo.
2020-07-21 18:23:38 +02:00
xing-yang
5800df6a61
Fix requeue logic in the common controller
2020-06-25 03:37:40 +00: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
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
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
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
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
xing-yang
60c696c7c7
Remove createSnapshotContentRetryCount and createSnapshotContentInterval
...
from command line options
2019-12-18 02:54:15 +00:00
xing-yang
6308420635
Split snapshot controller using beta APIs
2019-11-07 16:49:41 +00:00