Commit Graph

37 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
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
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
5be897c3bb Generate new clientset compatable with k8s-1.13.4 2019-05-16 09:38:37 +03: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
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
Michael Henriksen
fdf87bc2d3 update go to 1.11.5 2019-02-27 09:29:19 -05:00
Michael Henriksen
cb660fcfe0 add tests for controller runtime bootstrapping. gotta hit our coverage numbers, bro. otherwise kind of useless IMO 2019-01-29 13:15:46 -05:00
Alexander Wels
c5043052a8 Fix problem where errors in unit tests were not showing an error.
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-01-21 16:29:55 -05:00
Michael Henriksen
7170ba40f6 update kubernetes client/tools to 1.12.4 and controller runtime to 0.1.9 2019-01-08 16:10:30 -05:00
Michael Henriksen
85d76e0b08 rename datavolumecontroller to core 2019-01-08 15:52:41 -05:00
Michael Henriksen
27d95b1e9f dockerize dependency update (glide) 2019-01-08 14:26:07 -05:00
Michael Henriksen
a446598399 remove python client generation 2018-12-03 08:31:29 -05:00
Michael Henriksen
b35218fd2b update deploy scripts and add code generation test to travis 2018-12-03 08:31:29 -05:00
Michael Henriksen
baab39fd53 fix lint errors 2018-12-03 08:31:28 -05:00
Michael Henriksen
38d717de09 update where we get openapi-gen from 2018-12-03 08:31:28 -05:00
Michael Henriksen
80f8dcf8d8 swagger/apidoc/python client generation 2018-12-03 08:31:28 -05:00
Michael Henriksen
46dbf28936 add simple qcow2 image validation 2018-09-06 20:15:47 -04:00
John Griffith
73a492f5c2 Add golint enforcement to all pkgs but common (#428)
Now that the updates have merged to fix golint errors in all of the
CDI pkgs (except common) turn on lint checks to keep things up to date.

This patch does that by:
1.  Adding a check in hack/build/run-lint-checks.sh
    NOTE:  We temporarily set a list variable in the script to indicate
    the directories that we've fixed and want to enforce.  This will be
    removed when common is "lintified"
2.  Adding golint to our build containers Dockerfile
2018-09-06 09:51:12 -07:00
Lukas Bednar
bb2ba122ce Add option to generate junit and polarion report (#342)
It is necessary to close a loop for QE life-cycle .

Signed-off-by: Lukas Bednar <lbednar@redhat.com>
2018-08-24 08:40:58 -07:00
Alexander Wels
4ca250a167 funtional test framework (serial runs only)
- Added functional test framework similar to kubevirt one.
- Added basic sanity test to demonstrate framework.
- Updated some vendor packages.

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-08-08 13:08:26 -04:00
Jonathan Cope
b37b2fed2c Add goveralls support to makefile (#274)
* Added goveralls support for CI

* Add goveralls install to build container

* Small fix for manifest generation

* Fix symlinking bins

* goveralls only for PR merges
2018-07-25 13:37:28 -07:00
Jonathan Cope
75f2086cd8 Refactor makefile into scripts (#246)
* Use bash scripts to handle build workflow in docker containers

Added working docker builder/runner

Added _out to gitignore, stub script files

Added build and test scripts

small tweaks

Remove install opt, no need and create perm issues

Do func test for 'test' recipe, add non-docker option

Added QoL recipe alias, refactored test and build loops

centralized dockerfiles under hack/build/docker, renamed check/pre-check to format

Prefixed cmd/cdi- to main func files, added clean up scipt

simplified controller and importer dockerfiles, removed os/arch from bin name

DOCKER=1 - use docker

Travis and makefile changes

Don't go vet project in 'all' target (error in generated code), finished image builds

Small optimization to cdi-cloner image build

renamed build-images to build-docker; added make image aliases

testing version.sh

travis script calls new make targets, dropped version func (overly engineered for what we need)

deleted shift-tag.sh because it's just bad practice

Fix travis sed command

release :latest on PR merge

* Functional test refactoring

Removed test output files

renamed file vars to reflect purpose

Condensed test table definition, create tmp dir per test iteration

Refactored convertion funcs to write to a given directory, changed datastream test to create a temp dir and pass to file conversion, removed unused func

use randAlpahNum for tmp dir suffix, pepper in debug code

Must copy source file to tmp dir, then gzip/xzip, added debug code, package URL is deforming the file:// path by treating path[0] element as the server root

Fixed xz, gzip, tar, and noop test file generation; added copy of src to test dir if not present

Fixed typo in qemu-img cmd

Removed commented out line

* Added vet make target, updated hack/README

Make recipe call vet recipe

Updated hack/README

Makefile alias fix, clean all bin and _out except .gitignore, reverted 'vet' go_opt behavior

pulled 'vet' references from readme until it is fixed later

Don't delete the entire repo if _out doesn't exist,

* Moved clone script to cmd/ to make build flow smoother, now copy Dockerfiles to respective _out/cmd/* dirs for building container, delete old.Makefile

* Solidify build scripts

Text typos and comment additions

change cp glob to Dockerfile

Added push target to push images to non-kubevirt repo, updated README

Added license blocks, updated README with make vars, deleted empty script files

Added license to Makefile

Tweaked travis.yaml, removed version file (unused)

Fixed source paths

Fixing travis script sourcing

Moved shebang to line 1

Fixed shfmt install

Changed cloner script path in format.sh

Filter our vendor and pkg/client on go vet

Fix shfmt install in container, containerized clean target

Re-added Z opt to bind-mount

removed duplicate source line

Fix shfmt var expansion

formatting

Add non-docker cleanup optino
2018-07-20 09:25:53 -07:00