Commit Graph

12 Commits

Author SHA1 Message Date
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
a67c64c338
initial bazelification of CDI (#986)
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-10-15 15:55:44 -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
j-griffith
8cba5b06bb Enable use of external provider
As a developer, I would like to be able to make
modifications to the CDI code and test them in
my own cluster with my own storage rather than
relying upon the provided CDI images.

This change adds an external provider and makes some slight
modifications to enable it's use.

Assuming an existing kubernetes cluster with a properly configured
kubectl client on your system:

```bash
export KUBEVIRT_PROVIDER=external
export DOCKER_REPO=quay.io/barney-rubble
```

Then running `make cluster-sync` will build the CDI Images and push them
to the specified registry, generate the deployment manifests with the
appropriate registry and tag, and finally deploy the CDI operator to
your existing cluster.

The existing workflow is unchanged, the default `make cluster-up && make
cluster-sync` will work the same as it has in the past.
2019-05-06 14:40:51 -06:00
Denis Ollier
cbadd09168 Add a --version flag to cdi-apiserver
Signed-off-by: Denis Ollier <dollierp@redhat.com>
2019-03-20 15:16:10 +01:00
Michael Henriksen
5e2ed1b97b initial oerator implementation 2019-01-16 20:22:14 -05:00
Michael Henriksen
a446598399 remove python client generation 2018-12-03 08:31:29 -05:00
Michael Henriksen
80f8dcf8d8 swagger/apidoc/python client generation 2018-12-03 08:31:28 -05:00
j-griffith
ee839f9884 Add checkformat to Makefile and add Travis check
This adds a super simple gofmt check for Travis to run.  If there are
files that gofmt recommends updating, the check fails, if there aren't
it passes.
2018-08-24 11:18:21 -06: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
Jon Cope
8f953afd96 Add dynamic manifest generation
Adds go templated controller manifest

Adds make targets for template generation

Removes hard coded version values

Enables template generation and publishing in CI
2018-07-24 16:19:20 -05: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