Commit Graph

158 Commits

Author SHA1 Message Date
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
Daniel Erez
5b3109a324 smart-clone
Changes and flow:

* datavolume-controller:
- When clone pvc is requested and smart-clone is applicable -> Create a new VolumeSnapshot.

* Introduced smart-clone-controller:
- Listens to VolumeSnapshot changes and create a new PVC based on the snapshot.
- Upon PVC successful creation, deletes the snapshot for cleaning up.

Change-Id: I369fc92e72edb8a2cf584c8cb916795415f9d6e0
Signed-off-by: Daniel Erez <derez@redhat.com>
Co-authored-by: Fred Rolland <frolland@redhat.com>
2019-05-20 11:04:10 +03: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
415bcaa675
Merge branch 'master' into remove_tar_from_reader 2019-05-07 11:52:18 -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
Alexander Wels
88ee910faf
Merge branch 'master' into remove_tar_from_reader 2019-05-06 07:54:42 -04:00
Michael Henriksen
8204a3b3b6 fix sync script and rename cdi manifest 2019-05-05 19:11:49 -04: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
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