Commit Graph

19 Commits

Author SHA1 Message Date
Michael Henriksen
75f4fd6f2f
update k8s deps to 18.6 and controller runtime to 0.6.2 (#1330)
* update k8s deps to 1.18.6 and controller runtime to 0.6.2

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* remove building code generators from docker image.  This way the k8s ligray version only has to be updated in go.mod

Do more stuff in the bazel container.  Faster and better interop

Fix unit tests

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* make format

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* remove unnecessary rsync

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* redo code generator dep management

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* builder uses go modules

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2020-08-07 14:09:52 +02:00
Alexander Wels
c5f8d92d3b
Update external provider to allow for hpp and ceph storage. (#1318)
* Add support for external openshift cluster, in particular CRC.
make cluster-sync, and functional tests should all work.
Added documentation on how to enable CRC to work.

Signed-off-by: Alexander Wels <awels@redhat.com>

* Updates based on review.

Signed-off-by: Alexander Wels <awels@redhat.com>

* Changes based on review comments:
- removed registry in favor of making people use an external registry.
- added ceph for external provider.

Signed-off-by: Alexander Wels <awels@redhat.com>

* Fix review comments

Signed-off-by: Alexander Wels <awels@redhat.com>
2020-08-06 15:41:52 +02:00
Maya Rashish
dbab72c93e
Avoid using unportable readlink -f, use pwd -P instead (#1323)
* Avoid using unportable readlink -f, use pwd -P instead

Signed-off-by: Maya Rashish <mrashish@redhat.com>

* Spaces, not tabs

Signed-off-by: Maya Rashish <mrashish@redhat.com>
2020-08-03 00:15:50 +02:00
Alexander Wels
c7a3610769
Update cdi-builder to use go version 1.14.6 (current latest) (#1310)
* Update cdi-builder to use go version 1.14.6 (current latest)
Fix functional test framework to work with go >= 1.13. We were not
using the ginkgo ordering correctly, and our framework would call
flag.Parse() too soon, and mess with the go testing flag parsing.
As a result we had to alter some of the variables that we use to build
urls to be functions so that when called the required information is
available.
Fixed several tests not checking for errors.
Fixed dumping code being initialized several times messing with the
order in which failures were reported.

Signed-off-by: Alexander Wels <awels@redhat.com>

* Fixed failing tests.

Signed-off-by: Alexander Wels <awels@redhat.com>
2020-07-23 23:09:44 +02:00
Alexander Wels
be6f37241d Split unit and functional test into own script, so they are not fighting each other. (#1036)
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-11-26 04:30:57 +01:00
Alexander Wels
74704c72dc Replace current ceph install with operator based rook-ceph. (#1010)
Add reporting of DVs on test failures.

Signed-off-by: Alexander Wels <awels@redhat.com>
2019-11-12 13:25:15 +01:00
Michael Henriksen
019c843586 make clone pods use selinux type spc_t instead of privileged (#875)
* make clone pods use selinux type spc_t instead of privileged

* fix block mode related tests
2019-07-08 13:58:42 -04:00
Alexander Wels
dc4d22dc5d
Allow specifying block storage class. (#815)
Fix node selection functional test

Signed-off-by: Alexander Wels <awels@redhat.com>
2019-06-28 08:22:56 -04:00
Alexander Wels
0773572e5d
Refactored provider infra structure (#831)
* Remove a flaky part of the test that didn't add value.

Signed-off-by: Alexander Wels <awels@redhat.com>

Updated k8s image to latest.
Refactored cluster up to allow for adding more providers easily.

Signed-off-by: Alexander Wels <awels@redhat.com>

* Updated k8s image to latest.
Refactored cluster up to allow for adding more providers easily.
Enable OKD 4.1 provider

Signed-off-by: Alexander Wels <awels@redhat.com>
2019-06-13 14:29:42 -04:00
Daniel Erez
5b3109a324 smart-clone
Changes and flow:

* datavolume-controller:
- When clone pvc is requested and smart-clone is applicable -> Create a new VolumeSnapshot.

* Introduced smart-clone-controller:
- Listens to VolumeSnapshot changes and create a new PVC based on the snapshot.
- Upon PVC successful creation, deletes the snapshot for cleaning up.

Change-Id: I369fc92e72edb8a2cf584c8cb916795415f9d6e0
Signed-off-by: Daniel Erez <derez@redhat.com>
Co-authored-by: Fred Rolland <frolland@redhat.com>
2019-05-20 11:04:10 +03:00
Michael Henriksen
5e2ed1b97b initial oerator implementation 2019-01-16 20:22:14 -05:00
jeff vance
40c1143c66 deprecation of local endpoint support
- Removed file:// end points from code base.
- Updated unit tests to use httptest server instead of file://
- Refactored data stream unit tests to use ginko/gomega
2018-09-27 07:27:49 -04:00
Michael Henriksen
be89439734 functional test 2018-09-19 12:30:46 -04:00
Alexander Wels
5c379ad6a5 Fix CDI pod waiting retry counter.
- Fixed the retry counter not incrementing properly thus causing an
  endless loop.
- Added printing of the pods every minute to help debug which pods are
  not in the correct state.

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-09-07 09:15:44 -04:00
Jeff Vance
7f01fbf6c5 pr 'make format' (#442) 2018-09-07 07:21:52 -04:00
Alexander Wels
c009c795ec Add retry counter for waiting on CDI pods (#406)
- If a CDI pod fails it should abort the CI run.

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-09-05 09:31:46 -07:00
Alexander Wels
01cfa85dd1 Configure STDCI
- Added oVirt STDCI configuration files.

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-08-30 15:50:36 -04:00
Alexander Wels
62e477a143
Fix default CDI namespace typo (#364)
- The default was set to kubesystem, instead of kube-system.

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-08-23 14:10:11 -04:00
Jon Cope
695a41b956 Unify redundant test scripts under test target and aliases (#353)
* Unify redundant test scripts under test target and aliases

Remove func tests from travis - unsupported env

* func tests wrap generic test script

* address comments
2018-08-22 16:08:18 -07:00