Commit Graph

244 Commits

Author SHA1 Message Date
Alexander Wels
f3c7d23ae7
Merge pull request #724 from igoihman/replace-k8s-version
update k8s image to 1.13.3 and enable ceph
2019-03-28 18:09:19 -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
Alexander Wels
90c596dc40
Merge branch 'master' into replace-k8s-version 2019-03-27 10:04:59 -04:00
Irit goihman
64d4b32242 update k8s image to 1.13.3 and enable ceph
Signed-off-by: Irit goihman <igoihman@redhat.com>
2019-03-27 11:41:35 +02:00
Michael Henriksen
c17eb7a183 dump logs when functional tests fail 2019-03-26 20:13:49 -04:00
Alexander Wels
791ea487c9
Merge branch 'master' into version-flag 2019-03-20 20:02:24 -04: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
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
Alexander Wels
931ca19984
Merge branch 'master' into make_cleanup 2019-03-08 07:52:40 -05:00
Alexander Wels
1e46004ad2 Scratch space retry framework logic.
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-03-07 14:54:08 -05:00
annastopel
d93588741c add make target for cleanup docker cache on clsuter-down cluster-down-purge
CR fix

CR
2019-03-06 15:07:18 +02:00
annastopel
85b05231c9 minor fixes 2019-03-06 15:07:18 +02:00
Michael Henriksen
08ce3ad394 https cert configuration 2019-03-05 18:15:33 -05:00
Alexander Wels
7892c856e1
Merge branch 'master' into rate_limit_http 2019-03-05 09:23:08 -05:00
Michael Henriksen
827ab57ba7 use pullPolicy=Always for openshift 2019-03-04 19:40:39 -05:00
Alexander Wels
13ea494ac3
Merge branch 'master' into rate_limit_http 2019-03-04 07:27:31 -05:00
Alexander Wels
357f300a69
Merge branch 'master' into rate_limit_http 2019-03-01 15:02:50 -05:00
Michael Henriksen
369dfc385d update k8s to latest kubevirtci version (openshift is fine) 2019-03-01 13:38:19 -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
annastopel
b9edce9ef0 Import VM disk from ContainerDisk image 2019-02-12 21:11:39 +02:00
annastopel
460287d9f4 health of populate-registry should verify registry is accessible 2019-02-12 20:42:08 +02:00
annastopel
cb80249a7f BugFix: cdi importer fails to import from registry when run in unpriviledged container 2019-02-06 21:17:57 +02:00
Alexander Wels
f182e65df0
Merge branch 'master' into operator-test 2019-01-29 15:36:24 -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
3d9f7e17f1 Updated the released files to include operator and current binaries.
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-01-28 10:23:42 -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
6dd108400d add ready condition 2019-01-16 20:22:14 -05:00
Michael Henriksen
27d6a606a8 cleanup resources made by controller when uninstalling and flush out status 2019-01-16 20:22:14 -05:00
Michael Henriksen
5e2ed1b97b initial oerator implementation 2019-01-16 20:22:14 -05:00
tavni
bb542b391d Updating hack/README.md with more 'make' targets and alphabetical reordering
Signed-off-by: tavni <tavni@redhat.com>
2019-01-14 15:17:46 +02:00
Alexander Wels
40832a97bf Properly count the contributions by ignoring merges.
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-01-11 14:32:46 -05:00
Michael Henriksen
d02ed1d741 generate cdi-controller.yaml from resources defined in code 2019-01-11 10:15:03 -05:00
Alexander Wels
e645751a1c
Merge branch 'master' into update_os311_image 2019-01-09 12:11:07 -05:00
Alexander Wels
ca1b26bf84 Update open shift image.
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-01-09 10:00:56 -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
b135463747 operator scaffolding 2019-01-08 16:03:21 -05:00
Michael Henriksen
7d514a3ce2 move uploadcontroller to upload 2019-01-08 15:52:41 -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
Alexander Wels
00d6c07ba2
Merge branch 'master' into functional_test_fixes 2019-01-07 07:50:11 -05:00
annastopel
0a18aa3d09 Internal Docker registry host that is visible only inside teh cluster.
cdi-func-test-registry-host - a host that runs docker registry and is accessible from inside the cluster via
cdi-func-test-registry-host.kube-system host name. The registry is populated with images taken from /tmp/shared/images. It is used by functional tests.
Example of usage:
1. inspect
With skopeo acces registry to ispect image  built from /tmp/shared/images/tinyCore.iso
skopeo inspect --tls-verify=false docker://cdi-func-test-registry-host.kube-system/tinycore.iso

2. Copy
skopeo copy --src-tls-verify=false docker://cdi-func-test-registry-host.kube-system/tinycore.iso dir:/tmp/download

Technical details:
Registry is run in a dedicated  service cdi-func-test-registry-host.
In the same pod there are 3 containers:
1. cdi-func-test-registry - runs registry:2 with self signed certificate that listens on port 443
2. cdi-func-test-registry-init - used to pouplate /tmp/shared/images volume with images created from /test/images/tinuCore.iso and with certificate generated during container image build
3. cdi-func-test-registry-populate - encapsulted all images of /tmp/shared/images in docker images and pushes them to the registry
2019-01-06 09:43:40 +02:00
Michael Henriksen
4e5a4b781b make sure generated client code actually gets deleted 2019-01-03 15:17:55 -05:00
Alexander Wels
8b27e695f0 Fix some functional test issues running locally.
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-01-03 10:34:56 -05:00
Alexander Wels
246c0739a0 Update k8s and OS versions.
Signed-off-by: Alexander Wels <awels@redhat.com>
2018-12-06 10:05:30 -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
Alexander Wels
c274488da0 Updated release-description.sh to include relevant info.
Signed-off-by: Alexander Wels <awels@redhat.com>
2018-11-30 13:33:14 -05:00
Daniel Erez
573374b831 Import vm disk from docker registry
As a user, I want to specify a registry source to pre-populate my PV with a VM disk image.

* Using skopeo[1] cli to copy image from docker registry.
* Extracting image layers (tar files) into data folder.
* Cleaning up .wh. files and remove corresponding files.
* Supporting docker registries such as: docker hub, quay, etc.

[1] https://github.com/containers/skopeo

Change-Id: Ib4e20bb7be842ebaabeb925202402791827edfd3
Signed-off-by: Daniel Erez <derez@redhat.com>
Co-authored-by: Fred Rolland <frolland@redhat.com>
2018-11-29 01:15:01 +02:00
Daniel Erez
2714cfc581 dev readme: run specific functional tests
Added a note about running specific functional tests using
ginkgo command line options.

Change-Id: I5e1cb8f1f20fa170d2cf989870ee57c263e04f93
Signed-off-by: Daniel Erez <derez@redhat.com>
2018-11-22 21:34:30 +02:00
Alexander Wels
40072b631a Report cloning progress in logs and prometheus.
Signed-off-by: Alexander Wels <awels@redhat.com>
2018-11-01 11:09:03 -04:00
Fred Rolland
3cbf97ad67 Add test-lint target to README
Signed-off-by: Fred Rolland <frolland@redhat.com>
2018-10-23 15:46:06 +03:00
Michael Henriksen
6e88eea42a update kubernetes libraries 1.11.2 (same as KubeVirt) 2018-10-19 20:12:41 -04:00
j-griffith
0ec27ea579 Remove old commented out lintcheck code
Remove the commented out code in run-lint-checks.sh, this was leftover
from when we were only linting the pkg directory, we've now extended
that out to the other .go folders in the project and this was commented
out but should've been removed.
2018-10-09 08:22:02 -06:00
Michael Henriksen
508f8959e7 see if this helps the build 2018-10-08 19:57:07 -04:00
Alexander Wels
5d0476d86d
Merge branch 'master' into deprecate-file 2018-10-01 10:04:26 -04:00
j-griffith
0a84e2fa8c Add lint checks to remaining go src directories
This finishes up the last of the golint implementation, with the
addition of the cmd, tests and tools directories we are now running
golint tests on all of the current go source files in the project.

This change adds all the little fixes (mostly just commenting and
naming) and also enables the new diretories in the lint test that we
gate on.
2018-09-29 08:35:21 -06:00
jeff vance
40c1143c66 deprecation of local endpoint support
- Removed file:// end points from code base.
- Updated unit tests to use httptest server instead of file://
- Refactored data stream unit tests to use ginko/gomega
2018-09-27 07:27:49 -04:00
Adam Litke
6bfb2149cb Fix templatized manifest for upload containers
Signed-off-by: Adam Litke <alitke@redhat.com>
2018-09-24 16:10:41 -04:00
Alexander Wels
9802df5de6
Merge branch 'master' into jinjia 2018-09-21 13:28:23 -04:00
Shiyang Wang
507dfeab64 change jinjia var name to make it more consistent 2018-09-21 16:21:25 +08:00
Michael Henriksen
af654b4fca change *.cert to *.crt to be consistent with tls secrets creaed by kubectl. also made tls optional on uploadproxy. 2018-09-20 09:25:38 -04:00
Michael Henriksen
452e30bca7 add verification to functional test and change to shared pod phase annotation 2018-09-19 14:37:19 -04:00
Michael Henriksen
be89439734 functional test 2018-09-19 12:30:46 -04:00
Michael Henriksen
ef00f15e43 fix datavolumes by making sure that upload.cdi.kubevirt.io and cdi.kubevirt.io clients can coexist 2018-09-19 12:30:46 -04:00
Michael Henriksen
24d4e65a42 refactoring post rebase 2018-09-19 12:30:46 -04:00
Michael Henriksen
cd81879806 initial implementation of upload controller and upload server 2018-09-19 12:30:45 -04:00
David Vossel
c8e71a1432 Add UploadProxy component
Signed-off-by: David Vossel <davidvossel@gmail.com>
2018-09-19 12:30:45 -04:00
David Vossel
4466862aa1 Add CDI apiserver component
Signed-off-by: David Vossel <davidvossel@gmail.com>
2018-09-19 12:30:45 -04:00
David Vossel
fe3ee83c63 add UploadToken v1alpha1 and refactor client,lister,informer pkg name to be generic
Signed-off-by: David Vossel <davidvossel@gmail.com>
2018-09-19 12:30:45 -04:00
Adam Litke
ae0223bc33 Templateize docker image names (#458)
When generating the CDI release manifest, allow the image names for the
controller, importer, and cloner pods to be changed.

Signed-off-by: Adam Litke <alitke@redhat.com>
2018-09-18 11:37:56 -04:00
John Griffith
c455577cca Fix lint errors on common package (#449)
This change just updates the common package to pass golint.  Of course
that has some reaching implications into other packages with renaming of
constants.

I've intentionally kept this patch set to the bare minimum for the lint
test, I do think that we should put some effort into our use of
constants (especially those in common.go) in the future.

Ideally we'd declare constants where they're used, and we wouldn't
export them if they don't need to be.  There are some in here that
are only used in one or two packages, and that can be cleaned up pretty
easily however it's likely that there might be plans to use them
elsewhere in the future.
2018-09-10 09:14:09 -04:00
Adam Litke
e4c54af6f7
Merge branch 'master' into streaming-qcow 2018-09-07 12:05:21 -04:00
Alexander Wels
5c379ad6a5 Fix CDI pod waiting retry counter.
- Fixed the retry counter not incrementing properly thus causing an
  endless loop.
- Added printing of the pods every minute to help debug which pods are
  not in the correct state.

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-09-07 09:15:44 -04:00
Jeff Vance
7f01fbf6c5 pr 'make format' (#442) 2018-09-07 07:21:52 -04:00
Michael Henriksen
d9bbc4ed51 don't attempt to stream-convert http files that require creds 2018-09-06 20:40:56 -04:00
Michael Henriksen
9f08b4070c do dnf clean after installing packages 2018-09-06 20:15:47 -04:00
Michael Henriksen
46dbf28936 add simple qcow2 image validation 2018-09-06 20:15:47 -04:00
Michael Henriksen
a35d878109 do streaming qcow2->raw conversion if we can. also put resource limits on qemu-img 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
Alexander Wels
c009c795ec Add retry counter for waiting on CDI pods (#406)
- If a CDI pod fails it should abort the CI run.

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-09-05 09:31:46 -07:00
Jeff Vance
1a4854139b
hack/readme minor (#409) 2018-08-31 17:01:28 -07:00
Scott Creeley
4781d8b79d add non-standard execution path of functional tests (#393) 2018-08-31 15:39:11 -07:00
Jon Cope
596c9dcea9 Set file host nginx servernames (#407) 2018-08-31 14:35:04 -07:00
Jon Cope
437154d701 Add http transport test suite and supporting utils (#376) 2018-08-31 11:48:03 -07:00
Alexander Wels
01cfa85dd1 Configure STDCI
- Added oVirt STDCI configuration files.

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-08-30 15:50:36 -04:00
Jon Cope
26eedd57dc Fixes the broken make target for functest http container (#394) 2018-08-30 10:21:23 -07:00
Jon Cope
2e2a1a5639 Only install qemu-img (#391) 2018-08-30 10:48:13 -04:00
jeff vance
a00eb5d362 fix readme 2018-08-28 20:22:39 -07:00
Alexander Wels
363572626d cloner image uses ENTRYPOINT instead of hard coded path (#375)
- Updated controller to use ENTRYPOINT (no cmd) instead of /bin/sh
- Updated Dockerfile to set path to /usr/bin/cloner_startup.sh instead of /tmp
- Updated Dockerfile to use ENTRYPOINT.

Fixed issue #374

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-08-27 18:35:13 -07:00
Jeff Vance
42a6fa1714
bug in , lots of formatting (#378) 2018-08-27 17:04:50 -07:00
Jeff Vance
0a08ab436c
Update format.sh 2018-08-27 15:25:24 -07:00
Jon Cope
238f896143 Update hack readme (#369)
* Update hack readme

* Added example

* Added some missing make targets
2018-08-24 12:15:39 -07: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
Alexander Wels
62e477a143
Fix default CDI namespace typo (#364)
- The default was set to kubesystem, instead of kube-system.

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-08-23 14:10:11 -04:00
Jon Cope
695a41b956 Unify redundant test scripts under test target and aliases (#353)
* Unify redundant test scripts under test target and aliases

Remove func tests from travis - unsupported env

* func tests wrap generic test script

* address comments
2018-08-22 16:08:18 -07:00
Alexander Wels
8c1bbd8067 Sync test http server to cluster in make cluster-sync (#356)
- Added init/http docker images creation during sync
- Sync init/http image to cluster registry.
- Start http server service during sync.
- Clean up old install before sync.

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-08-22 08:53:53 -05:00
Jon Cope
5a19e55341 Colocated high level unit tests with their respective packages (#348) 2018-08-21 12:56:38 -07:00
Michael Henriksen
bcc2f5dfb9 fix make cluster-up hang (#358) 2018-08-21 08:30:57 -07:00
Jon Cope
7fda05c33e Run script in container (#351) 2018-08-17 10:01:06 -07:00
Scott Creeley
2a651c8725 rename in-docker with proper extension (#345) 2018-08-16 13:21:53 -07:00
Jon Cope
15891b5a52 Add containerized file host (http & s3) for functional testing (#315) 2018-08-16 10:10:15 -07:00
Scott Creeley
8f48078673 add e2e functional test steps to hack/README.md (#332)
* add e2e functional test steps

* addressing comments
2018-08-14 09:16:22 -07:00
David Vossel
5c43e6653e Update k8s 1.10.4 image to the updated version that has local storage enabled
Signed-off-by: David Vossel <davidvossel@gmail.com>
2018-08-13 17:13:12 -04: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
David Vossel
0ad625636e Add hash to cluster images (#320)
* Add hash to cluster images

Signed-off-by: David Vossel <davidvossel@gmail.com>

* Set k8s-1.10.4 as default KUBEVIRT_PROVIDER

Signed-off-by: David Vossel <davidvossel@gmail.com>
2018-08-08 08:54:18 -07:00
Shiyang Wang
6c785ca40b [WIP] Provide a jinja2 template for the cdi manifest (#321)
* change build-manifests.sh to generate jinjia template

* change verbosity to string

* add file to travis
2018-08-07 08:46:25 -07:00
Alexander Wels
0eef382081 Add kubevirt cluster environment with sync
- Added ability to call make cluster-up to start a kubevirt cluster.
- Added ability to call make cluster-down to stop a kubevirt cluster.
- Added ability to call make cluster-sync to build CDI and sync it with
  the running cluster. This allows for testing during development.
- Added cli.sh and kubectl.sh just like kubevirt, in the CDI project to
  manipulate a running cluster.
- You can use k8s or OCP providers like kubevirt.

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-08-03 09:54:44 -04:00
David Vossel
c6e33f1bea add namespace template parameter for cdi manifests (#305)
Signed-off-by: David Vossel <davidvossel@gmail.com>
2018-08-01 10:36:41 -07:00
Michael Henriksen
cde24a7cc7 move binaries to /usr/bin (#283) 2018-07-30 15:28:06 -07:00
Jeff Vance
000ae16c0c
size.Size() tests (#256)
* Size unit test

* add exceptions to Size functional tests

* rebase and minor

* exclude gz and xz

* fix unit tests

* no Printf in framework, new datastream subdir
2018-07-30 14:22:07 -07:00
Atul Bhosale
6e280690e5 [277] Change the name of the cloner startup script (#278)
* Change the name of the cloner startup script

* Change the name of the cloner startup script
2018-07-30 11:11:12 -07:00
Jonathan Cope
eb2190eb0d Add release note generator; tweak test coverage reporting, fixup docs (#276)
Tweak script, add make target

refactored makefile

removed redundanty vendor exclusion

Updated dev readme and release doc

eval when non-docker

review comment changes

spelling
2018-07-26 15:20:41 -07: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
Jon Cope
02e9d55138 fix make publish 2018-07-24 16:56:17 -05: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
Jeff Vance
d34205168b
[WIP] introspect file formats (#220)
* wip: infer file formats

* add some of jon's code

* outer for loop; compiles

* closer... fix panic, rm processed known hdrs

* tar magic # fix

* nested rdrs,tar,qcow2 size work

* go-ify code

* size works for standalone test but not func-tests

* func test run

* gofmt and validate.go cleanup

* fix my bad rebase against 198

* review comments

* review2
2018-06-26 18:29:01 -07:00
David Vossel
7106bf73dc Conform with top level kubevirt github project (#198)
* Place cdi packages under the top level kubevirt.io project path

Signed-off-by: David Vossel <davidvossel@gmail.com>

* Change all references to cdi.io to cdi.kubevirt.io

Signed-off-by: David Vossel <davidvossel@gmail.com>

* Add go_import_path to travis config

Signed-off-by: David Vossel <davidvossel@gmail.com>

* update test package imports

Signed-off-by: David Vossel <davidvossel@gmail.com>
2018-06-21 15:44:52 -07:00
Jon Cope
7910c5ec8b Add 'g' to sed command for global substitutions 2018-06-18 12:41:38 -05:00
Jon Cope
e4471e023c exit 1 on user abort 2018-06-13 11:18:32 -05:00
Jon Cope
9cc1e12e4c Allow non-master branch as long as there is no diff with UPSTREAM master 2018-06-13 10:23:45 -05:00
David Vossel
fcab71d798 add generate scripts
Signed-off-by: David Vossel <davidvossel@gmail.com>
2018-06-11 21:58:15 -04:00
Jon Cope
263863e53e Release images after setting version 2018-06-05 10:09:08 -05:00
Jon Cope
aed0b1bbfa Fix automated git push 2018-06-04 17:39:28 -05:00
Jon Cope
b072264b3f Fix typo'd var 2018-06-04 16:40:46 -05:00
Jon Cope
7ff1ae7232 rename shift-version.sh to shift-tag.sh 2018-06-04 16:27:01 -05:00
Jon Cope
15ee9966fb Add Makefile recipe to increment verions
Update version from makefile
2018-06-04 16:10:21 -05:00
Jonathan Cope
9e4ca4cc91
Update auto-version.sh
use readlink -f instead of autoversion
2018-05-31 17:15:19 -05:00
Jon Cope
40f021e3d5 Parse git tag for ci skip string
Skip deployment on ci skip tag

move tag checking to before_deploy
2018-05-31 16:22:25 -05:00
Jon Cope
34f72fe173 Comments, pass TARGET_FILES instead of accessing global 2018-05-30 14:04:38 -05:00
Jon Cope
b3aa0fb542 Script to update version and git tags 2018-05-30 13:40:14 -05:00
Jon Cope
d9ced554c9 Moved dev section to hack 2018-03-02 12:57:00 -06:00
Jon Cope
7fe5195d8b restructure docs 2018-03-02 12:57:00 -06:00