Commit Graph

89 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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