Commit Graph

244 Commits

Author SHA1 Message Date
Vishesh Tanksale
4c62027101
Adding support to specify CA cert for push images (#1345)
Signed-off-by: Vishesh Ajay Tanksale <vtanksale@apple.com>

Co-authored-by: Vishesh Ajay Tanksale <vtanksale@apple.com>
2020-08-21 21:56:00 +02:00
Alexander Wels
9bfc4f94be
verify schema using travis. (#1336)
Signed-off-by: Alexander Wels <awels@redhat.com>
2020-08-11 19:27:55 +02:00
Alexander Wels
5ec59e4edd
Update builder image to official latest (#1335)
Signed-off-by: Alexander Wels <awels@redhat.com>
2020-08-08 00:15:53 +02:00
Alexander Wels
bbe0685323 Fix how we determine base builder image. Just hard code instead of trying to determine from previous image.
Signed-off-by: Alexander Wels <awels@redhat.com>
2020-08-07 08:59:11 -04:00
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
Michael Henriksen
491a4b344b
update PATH for bazel builder image (#1332)
Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2020-08-06 12:02:19 -04:00
Michael Henriksen
8613d706d5
Merge pull request #1324 from awels/update_builder_v006
Update builder to v0.0.6 and include controller-gen install
2020-08-06 09:43:56 -04: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
Alexander Wels
2dff825834 Update builder to v0.0.6 and include controller-gen install
Signed-off-by: Alexander Wels <awels@redhat.com>
2020-08-06 08:02:54 -04: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
Michael Henriksen
8b9ce68262
enable webhooks for alpha resources (#1321)
* enable webhooks for alpha resources

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

* clean up transport test

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

* update alpha api test, webhook error message was changed

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2020-08-01 16:09:50 +02:00
Alexander Wels
5affb5cce8
Update builder image to v0.0.5 (#1313)
Signed-off-by: Alexander Wels <awels@redhat.com>
2020-07-24 22:29:45 +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
Tomasz Barański
8a8c9cdbf7
build: Add btrfs-progs-devel and device-mapper-devel to builder image (#1304)
Signed-off-by: Tomasz Baranski <tbaransk@redhat.com>
2020-07-19 18:15:42 +02:00
Michael Henriksen
7c1202e3d1
add v1alpha1 api groups back (#1303)
Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2020-07-17 17:43:42 +02:00
Maya Rashish
dd0b5f60ee
Update kubevirtci. (#1292)
* Update kubevirtci.

Changes default KUBEVIRT_PROVIDER to k8s-1.18 that works, the previous
CDI-specific change was wrong and got overridden by another
'make generate'.

Removes ocp and okd kubevirtci providers.

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

* GC okd-4.1 and okd-4.3 cluster-sync logic.

These lanes were removed from kubevirtci.

Signed-off-by: Maya Rashish <mrashish@redhat.com>
2020-07-13 22:37:40 +02:00
Michael Henriksen
9e2c79b1e0
move api groups to v1beta1 (#1232)
* move upload.cdi.kubevirt.io API group to v1beta1

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

* move core api to v1beta1

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

* fix os-3.11 cluster sync and add functional tests for alpha api

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

* change more occurences of v1alpha1

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

* updates after rebase

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2020-07-10 15:47:38 +02:00
Maya Rashish
588a55ec3a
Remove k8s-1.16 cluster-sync logic (#1280)
* Make the k8s-1.18 lane the default

This is so we can remove the k8s-1.15 lane.
We don't run this lane in CI.

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

* Remove k8s-1.16 cluster-sync support.

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

* Remove k8s-1.15 cluster-sync support.

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

* Update documentation regarding default KUBEVIRT_PROVIDERs

Signed-off-by: Maya Rashish <mrashish@redhat.com>
2020-07-08 08:03:37 +02:00
Maya Rashish
0fe170eb21
Update kubevirtci and add k8s-1.18 lane (#1252)
* Update kubevirtci

This adds a k8s-1.18 lane, among other things.

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

* Add cluster-sync support for k8s-1.18

Signed-off-by: Maya Rashish <mrashish@redhat.com>
2020-06-25 13:28:11 +02:00
Alexander Wels
16adf2cd8e
Update builder image to allow podman to work. (#1221)
Signed-off-by: Alexander Wels <awels@redhat.com>
2020-06-05 18:35:36 +02:00
Alexander Wels
aef7429b3f
Added missing diff to builder image (#1223)
Signed-off-by: Alexander Wels <awels@redhat.com>
2020-06-04 15:21:36 +02:00
Michael Henriksen
1b5c5fe0a9
use kubernetes openapi generator (#1222)
Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2020-06-03 22:47:35 +02:00
Alexander Wels
7717c89f2d
Enable the use of podman to start the kubevirtci cluster, and make cluster-sync (#1211)
Signed-off-by: Alexander Wels <awels@redhat.com>
2020-06-01 22:03:34 +02:00
Michael Henriksen
d45574678b
alpha to beta snapshot API (#1206)
* move from alpha to beta snapshot API

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

* fix broken clone tests

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

* don't generate snapshot client

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2020-05-20 15:25:28 +02:00
Bartosz Rybacki
28bd674cfd
update hack/readme with new provider versions (#1199)
* Update hack/readme with new provider versions

Signed-off-by: Bartosz Rybacki <brybacki@redhat.com>

* Add supported storage to readme

Signed-off-by: Bartosz Rybacki <brybacki@redhat.com>
2020-05-08 15:13:20 +02:00
maya-r
93565b2c88
Implement local webserver to mimic flawed servers (for functional tests) (#1193)
* Implement local web server to mimic flawed servers

http://cdi-bad-webserver.cdi/flaky/filename will return a 503
"unavailable" error to most requests.

http://cdi-bad-webserver.cdi/forbidden-HEAD/filename will return
a 403 "Forbidden" error on HEAD requests.

In both those cases, we validate that we still eventually succeed
in creating a datavolume.

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

* Add the imageio server to the manual test setup instructions.

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

* Add missing bad-webserver.yaml.in (forgot to git add)

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

* Make "flaky" bad-webserver reproducibly flaky.

9 failures followed by a success.
Switch to port 9090, os-3.11 disallows using privileged ports,
and we don't have a reason to prefer port 80.

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

* Provide polarion test IDs

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

* Make flaky test server fail less frequently.

The exponential backoff makes 10 retries very slow.

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

* Tolerate being installed on a namespace that isn't "cdi"

Assume that we are in the same namespace as cdi-file-host, and
use that namespace in the URL.

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

* Use AfterEach to cleanup datavolumes after test.

Suggested by Alexander Wels.

Signed-off-by: Maya Rashish <mrashish@redhat.com>
2020-05-08 00:01:19 +02:00
Michael Henriksen
f4f8e975b6
update kubevirtci (#1198)
* update kubevirtci to 0b941ea5dc647d3aea6f6a6fff95563d6ce0445e

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

* make sure SELinux permissions correct for hpp

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

* fix permission issue with clone source pods and k8s-1.17 provider

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2020-05-07 13:19:19 +02:00
Alexander Wels
9ba020de99
klog released v2 a few days ago. And the sub repo /v2 is no longer there. Anything referencing v2 is breaking. This is a hack to symlink v2 to klog as they are now the same. (#1180)
Signed-off-by: Alexander Wels <awels@redhat.com>
2020-04-16 04:22:02 +02:00
Alexander Wels
25249c0148
Add ember csi lane (#1143)
* Add loopback device container
Add code to create pv vg and lvm
Add ember csi lvm based provisioner.

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

* import/export

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

* Address PR comments.
Switch deployment to pod for loopback device
Sleep 1 instead of 60 to allow kubernetes easier way of killing pod.
Instead of embercsi master, grab one that works from known repo.

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

* Finish loopback pod instead of looping it.

Signed-off-by: Alexander Wels <awels@redhat.com>
2020-03-27 19:13:49 +01:00
Alexander Wels
683323dbf6
Looks like gradle is no longer available in fedora 31, and the build image build is failing due to it. (#1136)
Signed-off-by: Alexander Wels <awels@redhat.com>
2020-03-11 15:37:57 +01:00
Alexander Wels
a4c51ed8b4
Move base images to fedora 31. (#1119)
Signed-off-by: Alexander Wels <awels@redhat.com>
2020-03-07 17:07:12 +01:00
Alexander Wels
7c7cbdc78e
update kubevirtci to latest. (#1113)
Signed-off-by: Alexander Wels <awels@redhat.com>
2020-02-18 14:42:48 +01:00
Michael Henriksen
afa4f89ff8 update kubevirci and add support for k8s 1.17.0 (#1083)
Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2020-01-15 17:04:45 +01:00
Michael Henriksen
99f8af5b86 k8s client upgrade to 1.16 (#1079)
* initial client upgrade to 1.16

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

* fix Route detection in OpenShift

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2020-01-14 13:43:17 +01:00
Michael Henriksen
7738b30526 use tags for builder image (#1082)
Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2020-01-13 19:58:16 +01:00
Alexander Wels
d32b8d9914 Enable hostpath provisioner for OKD 4.3 kubevirtci provider. (#1060)
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-12-20 16:04:44 +01:00
Alexander Wels
ff2d216bf4 Add missing parenthesis (#1052)
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-12-11 01:37:26 +01:00
Adam Litke
7f90c63c98 Fix build and push of builder image (#1051)
When building and pushing a new bazel builder image we do not want to use the
sha hash of the current builder image.  We should strip this off to get the
image name and just use :latest.

Signed-off-by: Adam Litke <alitke@redhat.com>
2019-12-10 18:38:25 +01:00
Adam Litke
65db6db0fa Use an existing bazel-builder image instead of building it every time (#997)
Signed-off-by: Adam Litke <alitke@redhat.com>
2019-12-10 13:52:25 +01:00
Alexander Wels
83c5e459a6 Push builder image to dockerhub (#1037)
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-12-03 02:32:45 +01:00
Alexander Wels
657be041ac Add k8s 1.16.2 provider. (#1041)
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-12-02 17:55:45 +01: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
maya-r
01d59f21f0 doc: don't link to the current point in the document (#1024)
Signed-off-by: Maya Rashish <mrashish@redhat.com>
2019-11-14 13:30:16 +01:00
Michael Henriksen
97c23cfa5a remove DOCKER_REPO from operator (#1022)
* remove DOCKER_REPO from operator

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

* make generate and update CDI schema

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2019-11-14 02:59:16 +01:00
Alexander Wels
80f3d7d26a Update documentation that --extra-args=--enable-ceph is no longer needed to enable ceph on k8s (#1017)
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-11-13 17:06:16 +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
044ab60f52 cut down operator permissions (#1012)
* cut down operator permissions

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

* mage sure csv-generator is built but not included in operator image

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2019-11-11 22:41:14 +01:00
Alexander Wels
10a97d1385
Update the kubevirtci OKD image to fix cert issue. (#1004)
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-11-05 17:19:31 -05:00
Alexander Wels
212fe3e0ca
Update kubevirt ci to latest image. (#1002)
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-11-04 07:55:08 -05:00
Alexander Wels
fcbdbf4d3d
Fix push failing on target that is no longer relevant. (#993)
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-10-15 19:32:49 -04:00