Commit Graph

90 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
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
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
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
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
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
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
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
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
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
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
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
7ebeb24d44 add csv-generator binary to operator container
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
annastopel
0df26bf9ca * CR: set version tag to operator-registry image 2019-07-14 09:49:36 +03:00
annastopel
34bc7e1d94 OLM - ci -test. Create cdi-olm-catalog to be able to deploy cdi via olm in ci. This is due to okd 4.1.
* Add make tagret docker-olm-catalog
  * Add build-olm-catalog script that builds tree expected by operator-registry.

  * add catalogsource manifest to deploy operator registry per provider
    * os
    * k8s
  * update olm documentation with opertor-registry deployment
2019-07-14 09:48:09 +03: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
Michael Henriksen
d22e5c0c6f run upload/import pods as nonroot 2019-06-05 17:28:15 -04:00
Michael Henriksen
bc240a91d9 dont't run as root 2019-06-05 16:16:22 -04:00
Alexander Wels
2ab67027c3
Merge branch 'master' into repo_fix 2019-06-05 10:35:02 -04:00
Daniel Erez
c9625162c1 datavolume_test: malicious qcow2 images
Added functional tests to ensure that malicious
qcow2 images are being rejected. I.e. the creation
of import datavolume should fail when converted to raw.

Change-Id: I3372105fdcd28b8e01811d7e6752f04f5dba9e0d
Signed-off-by: Daniel Erez <derez@redhat.com>
Signed-off-by: Fred Rolland <frolland@redhat.com>
Co-authored-by: Fred Rolland <frolland@redhat.com>
2019-06-04 12:53:08 +03:00
Alexander Wels
e4e7f058b7 Make sure we are using mirror.
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-05-31 09:02:11 -04:00
Alexander Wels
e59d57f1c7 Fix microdnf not using the repo files in /etc/yum.repos.d
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-05-24 08:11:33 -04:00
Alexander Wels
f5e042fcb8 Switch to minimal fedora 30
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-05-22 10:31:19 -04:00
Artyom Lukianov
11321ae7e9 Set klog flags before flags parsing
Looks like before some of imports used glog package that set all flags
under init() method, but after dependencies code stopped to run glog
init() method on container creation, so we need to set flags from klog
and parse flags in the right order.
2019-05-16 09:38:37 +03:00
Artyom Lukianov
5be897c3bb Generate new clientset compatable with k8s-1.13.4 2019-05-16 09:38:37 +03:00
Alexander Wels
c30f3975d2 Remove tar from the readers
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-05-03 08:37:45 -04:00
annastopel
f634cdaa17 CDI operator OLM integration:
- Generate OLM related manifests for CDI in _out/manifests/release/olm
      OLM bundle:
	- cdi CSV manifest
	- cdi crd manifest
	- cdi package manifest
     - operatorsource manifest
     - subscription manifest
     - operatorgroup manifest
- Modify cdi-operator role not to be cluster-admin but more specific
- Move all final manifests to _out/manifests directory and update travis with new manifests location
- Provide API for vendoring CDI OLM manifests generation code

Note:
  - OLM CSV update to be supported in a separate PR
  - OLM bundle integration in travis is to be supported together with CSV update
2019-05-01 13:54:28 +03:00
Alexander Wels
05b6a21736 Fix issues with size header in cloning something reading beginning of data.
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-04-26 19:47:03 -04:00
tavni
e6665945bc Adding support to clone disk image from one Block PV to another
Signed-off-by: tavni <tavni@redhat.com>
2019-04-15 15:33:52 +03:00
Alexander Wels
c507cc40cb Update fedora base image to fedora 29 for containers.
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-04-10 09:22:21 -04:00
tavni
d4c7b0be54 Adding support to import disk image into Block PV
Signed-off-by: tavni <tavni@redhat.com>
2019-03-28 11:43:56 +02:00
Michael Henriksen
c17eb7a183 dump logs when functional tests fail 2019-03-26 20:13:49 -04:00
annastopel
29b78d54ff registry func test host fixes
1. remove unecessary pvc and volume mount
2. bug fix in populate-registry error handling
2019-03-20 10:27:44 +02:00
annastopel
86405a4d14 bug fix: func test - registry buildah failure on outdated /etc/containers/storage.conf 2019-03-19 17:51:51 +02:00
Michael Henriksen
08ce3ad394 https cert configuration 2019-03-05 18:15:33 -05:00
Alexander Wels
357f300a69
Merge branch 'master' into rate_limit_http 2019-03-01 15:02:50 -05:00
Michael Henriksen
99ef385101 remove upload proxy init container 2019-03-01 10:30:17 -05:00
Michael Henriksen
931985658b add ready check to cdi controller and have upload proxy wait for it and the apiserver 2019-03-01 10:20:58 -05:00
Michael Henriksen
ec2736d2c4 ready checks for all upload componets and uploadproxy sync with api server 2019-03-01 10:20:57 -05:00
Alexander Wels
76371196ba
Merge branch 'master' into rate_limit_http 2019-02-28 14:44:24 -05:00
Alexander Wels
0a32c5be1c Test prometheus endpoint existance.
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-02-28 11:42:13 -05:00
Michael Henriksen
fdf87bc2d3 update go to 1.11.5 2019-02-27 09:29:19 -05:00
Michael Henriksen
717ceaa919 add ability for user to specify certs for import from registry 2019-02-18 09:06:46 -05:00