Artyom Lukianov
40325745d0
Copy triple package from client-go repository
...
This package droped from client-go 1.13.4, so until
we will have find some good alternatives, we can use local copy.
2019-05-16 09:38:37 +03:00
Alexander Wels
630a23ef23
Fix a bunch of go score card issues.
...
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-05-06 16:52:03 -04:00
Irit goihman
71c2ead357
cleaned redundant function
...
Signed-off-by: Irit goihman <igoihman@redhat.com>
2019-04-26 15:57:13 +03:00
Irit goihman
2bf542705b
remove label from ingress informer
...
Signed-off-by: Irit goihman <igoihman@redhat.com>
2019-04-26 15:40:40 +03:00
Alexander Wels
309a46e72d
Verify source and target PVC are correct before proceeding with clone.
...
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-04-18 10:17:34 -04:00
tavni
e9b6b4f501
Adding support to upload disk image to a Raw Block PV
...
Signed-off-by: tavni <tavni@redhat.com>
2019-04-17 10:27:24 +03: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
b3cccf00af
Unable to get progress metrics is not an error.
...
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-04-12 13:16:01 -04:00
Alexander Wels
9c4f854bf8
Merge branch 'master' into datavolume_progress_status
2019-04-08 09:02:18 -04:00
tavni
e0d4ec62b0
Fix for isue #1690415 - CDI appends 'source pod' to a label and may fail on error that label must not be longer than 63 characters
...
Signed-off-by: tavni <tavni@redhat.com>
2019-04-03 14:11:42 +03:00
Alexander Wels
d1207e1079
Update config-controller_test.go
2019-04-02 15:35:00 -04:00
Alexander Wels
f30c4fbb11
Disable flaky unit test related to CDI Config
...
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-04-02 13:26:50 -04:00
Alexander Wels
6270b80b31
Update Datavolume status to include progress
...
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-04-02 11:34:00 -04:00
Alexander Wels
b417d351cc
Fix target pod cleanup across namespaces
...
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-03-29 14:42:38 -04:00
Alexander Wels
c6b9a5fe52
Merge pull request #630 from zvikorn/import-block-pv
...
Adding support to import disk image into a Block PV
2019-03-28 18:08:45 -04:00
Alexander Wels
0d76a7444b
Fix issue with the cdi config controller hanging in k8s
...
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-03-28 15:32:54 -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
afe77c3514
Allow missing storage class for scratch space, if none exists, create scratch PVC without SC
...
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-03-27 11:41:15 -04:00
Alexander Wels
d2ca78bec3
Use CDIConfig for scratch storage class.
...
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-03-21 15:37:07 -04:00
Alexander Wels
d1b7842a90
Resize on upload.
...
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-03-08 21:51:05 -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
Y.Horie
0c90e9c901
fix conflict
2019-03-05 23:23:04 +09:00
Y.Horie
09819e8158
Merge branch 'master' into issue-687
2019-03-05 23:05:05 +09:00
Y.Horie
c9104059fb
move to klog from glog
2019-03-05 13:33:20 +09:00
Michael Henriksen
49a740d7ba
make CDIConfig client cluster scoped and fix occasional crash
2019-03-04 18:54:58 -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
Irit goihman
c199129e1f
add 'cdi.kubevirt.io' label to cdiconfig and remove config on make cluster-clean
...
Signed-off-by: Irit goihman <igoihman@redhat.com>
2019-02-28 13:19:04 +02:00
Irit goihman
ca34bc5d50
config-controller: keep CDIConfig object when creating a new config
...
In case that CDIConfig already exists, create call will return the
object with empty fields. Calling update will result with an error
updating empty resource.
Signed-off-by: Irit goihman <igoihman@redhat.com>
2019-02-28 11:44:35 +02:00
Irit goihman
8089d795b9
CDI Config is now owned by the CDI object
...
Signed-off-by: Irit goihman <igoihman@redhat.com>
2019-02-28 10:29:36 +02:00
Michael Henriksen
6f1d130d97
tests and review comments
2019-02-25 20:12:56 -05:00
Michael Henriksen
62f1e77f66
change INSECURE_REGISTRY to INSECURE_TLS because may want to have insecure hosts for http import
2019-02-25 20:12:56 -05:00
Michael Henriksen
3892a7310d
add configmap for insecure regestries
2019-02-25 20:12:56 -05:00
Irit Goihman
1691fe1b39
create cdi config with config controller
...
Signed-off-by: Irit goihman <igoihman@redhat.com>
2019-02-24 10:23:35 +02:00
j-griffith
30c0e1b814
Delete importer pod on pvc delete request
...
Related to issue #525 , we have a similar situation when using PVCs
without DataVolumes. The user requests a PVC with CDI Importer
annotations, if the Importer POD is in a fail/retry loop and the user
requests deletion of the PVC the PVC will be stuck in terminating
waiting for the user to forcibly delete the running Import POD.
This PR adds a check for PVC delete in the import controller and
will delete the POD explicitly if it sees a PVC delete request. This
will also be picked up for Import DataVolumes, so we can remove the
extra checks that were previously added in the DV controller.
fixes #649
fixes #525
2019-02-20 13:43:09 -07:00
Michael Henriksen
717ceaa919
add ability for user to specify certs for import from registry
2019-02-18 09:06:46 -05:00
Michael Henriksen
fbaee779f7
don't set pvc pod phase as error when import pod is starting for the first time
2019-02-11 09:57:04 -05:00
Michael Henriksen
9039d84750
fix for issue #636 : can't create/delete/create the same datavolume
2019-02-06 11:29:45 -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
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
tavni
c245fe2ae6
Adding DataVolume support for unpacking imported archive
...
Signed-off-by: tavni <tavni@redhat.com>
2019-01-08 15:10:02 +02:00
tavni
df418652f7
Clone sometimes doesn't add k8s.io/CloneOf annotation to target PVC #560
...
Signed-off-by: tavni <tavni@redhat.com>
2018-12-20 10:02:17 +02:00
tavni
d724928c8f
Host-assisted cloning runs after PVC is already cloned #534
...
Signed-off-by: tavni <tavni@redhat.com>
2018-11-30 09:42:30 +02: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
tavni
aebc2b3e87
Add ability to create empty disk images #497
...
Signed-off-by: tavni <tavni@redhat.com>
2018-11-27 16:15:44 +02:00
Alexander Wels
260d4fa8e0
Automatically resize image to fit the requested PVC.
...
Combined code from PR#489 and PR#490 by
@gites and
@danielerez
Added some tests and rebased on current master.
Signed-off-by: Alexander Wels <awels@redhat.com>
2018-11-20 15:40:13 -05:00
Alexander Wels
676b4ec133
Fix some flaky tests.
...
Signed-off-by: Alexander Wels <awels@redhat.com>
2018-11-20 09:23:37 -05:00
j-griffith
cd88a3d8b7
Check orphaned DataVolume PVCs for PODs
...
This change adds an extra check to deleted Data Volume PVCs and makes
sure that we explicitly delete any associated POD objects that they
owned regardless of their phase.
GH Issue #525
2018-11-17 09:46:26 -07:00
Alexander Wels
70666e5946
Add source and contentType annotations
...
Signed-off-by: Alexander Wels <awels@redhat.com>
2018-11-14 12:20:26 -05:00