Commit Graph

192 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
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
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
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
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
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
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
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
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
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
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
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
Alexander Wels
a67c64c338
initial bazelification of CDI (#986)
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-10-15 15:55:44 -04:00
Alexander Wels
5acc1df798
Move dependency management to go modules instead of glide. (#989)
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-10-09 15:02:17 -04:00
Alexander Wels
4a20e29db3
Remove OLM integration as we aren't using it. (#982)
Removed OLM code since it is not being used in CDI deployment.

Signed-off-by: Alexander Wels <awels@redhat.com>
2019-10-07 18:34:07 -04:00
Alexander Wels
f8dad13db6
Update kubevirtci images to refresh certificates. (#973)
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-09-24 19:08:24 -04:00
Adam Litke
3e28d95d84 Restore backwards compatible docker syntax (#957)
The --chown option to the docker COPY command is only supported in
docker 17.09+.  This creates a dependency on docker-ce which is not
available in some distributions.  We can make our build work on more
environments if we use a separate chown command after the COPY.

Signed-off-by: Adam Litke <alitke@redhat.com>
2019-09-11 23:10:52 -04:00
Alexander Wels
64b3c48286
Make sure input is not same as output directory when building olm-catalog. (#951)
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-09-04 16:39:27 -04:00
Alexander Wels
25135ee46e
Updated kubevirtci images to latest. Rolling OKD 4.1 instead (#937)
of specific versions.
okd provider is now aware of KUBEVIRT_NUM_NODES

Signed-off-by: Alexander Wels <awels@redhat.com>
2019-08-23 15:39:51 -04:00
Alexander Wels
3358a2907d
Update release message to include link to operator (#934)
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-08-21 15:57:10 -04:00
Alexander Wels
b3bf364b23
Add block versions of cloning functional tests. (#926)
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-08-20 07:19:18 -04:00
John Griffith
5c8877911c Fallback to Fedora29 minimal for images (#915)
The newer version of qemu-img (3.1.0) that ships in Fedora 30 has issues
with streaming conversions whereby it hangs during the conversion
process.  Rather than try to force a downgrade of qemu when building
images instead, let's try reverting back to Fedora29 minimal which has
qemu-img version  3.0.0.

This issue has also exposed the fact that we aren't performing any
testing against streaming external images, we're only testing against
images that we've pulled in to our test infrastucture.  So add a
functional test that builds a DataVolume directly from the cirros site.

set dv test back to expectin prlimit failure
2019-08-16 11:18:21 -04:00
Alexander Wels
e047b17c95 Update kubevirtci k8s version to 1.15.1
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-08-15 08:24:34 -04:00
Anna Stopel
ab7727ee5a * Prevent pushing OLM bundle with CSV_VERSION = 0.0.0 to quay (#924) 2019-08-14 08:32:26 -04:00
Alexander Wels
01931c2c59 Update travis jobs.
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-08-12 16:06:49 -04:00
Alexander Wels
b06b25d923
Downgrade to 4.1.0 version, 4.2.0 is broken. (#917)
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-08-09 18:17:12 -04:00
David Vossel
58db2b95fb Add test-lint related fixes to code formatting
Signed-off-by: David Vossel <davidvossel@gmail.com>
2019-08-05 12:05:49 -04:00
David Vossel
7ebeb24d44 add csv-generator binary to operator container
Signed-off-by: David Vossel <davidvossel@gmail.com>
2019-08-02 10:11:27 -04:00
David Vossel
2292ea1700 Generate release CSV from code
Signed-off-by: David Vossel <davidvossel@gmail.com>
2019-08-02 10:11:27 -04:00
Michael Henriksen
834b85ecbf Network clone (#897)
* network cloning

* fix clone progress
2019-08-01 16:01:25 -04:00