anencore94
b2fc1594a4
Update comments on scratch space ( #1133 )
...
- match comments on scratch space storage class with
the source code
Signed-off-by: anencore94 <anencore94@kaist.ac.kr>
2020-03-08 00:43:12 +01:00
Alexander Wels
1d48514c2b
Use controller runtime library for upload controller ( #1085 )
...
Signed-off-by: Alexander Wels <awels@redhat.com>
2020-03-03 15:30:56 +01:00
Alexander Wels
79b144088f
Copy kubevirt.io annotations to scratch space pvc, but NOT cdi.kubevirt.io as those are what triggers import/upload/clone. ( #1109 )
...
Signed-off-by: Alexander Wels <awels@redhat.com>
2020-02-20 16:50:50 +01:00
Alexander Wels
17db2920b1
Update clone controller to use runtime library. ( #1075 )
...
Signed-off-by: Alexander Wels <awels@redhat.com>
Co-authored-by: Michael Henriksen <mhenriks@redhat.com>
2020-02-14 23:04:46 +01:00
Alexander Wels
9a2b514365
Add async endpoint for upload that closes connection immediately after transfer completes and then continues background processing. ( #1095 )
...
Signed-off-by: Alexander Wels <awels@redhat.com>
2020-02-12 16:17:26 +01:00
Michael Henriksen
29d3a5e393
remove permission to get secrets at cluster level ( #1098 )
...
Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2020-02-06 04:28:59 +01:00
Michael Henriksen
bd4c4c950b
cert rotation ( #1091 )
...
* initial cert rotation controller
Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
* fix typo
Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2020-02-03 23:36:58 +01:00
Michael Henriksen
99f8af5b86
k8s client upgrade to 1.16 ( #1079 )
...
* initial client upgrade to 1.16
Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
* fix Route detection in OpenShift
Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2020-01-14 13:43:17 +01:00
Woohyung Han
2adcc80f95
Fix to create temporary pod with default resource quota ( #1055 )
...
If we create a temporary pod in the namespace which has
resource quota, `must specify quota` error occurs. Fix to
create temporary pod with default resource quota.
Co-authored-by: hyoung-90 <ssarang520@gmail.com>
Co-authored-by: Woohyung Han <woohhan@gmail.com>
Signed-off-by: anencore94 <anencore94@kaist.ac.kr>
Co-authored-by: anencore94 <37469330+anencore94@users.noreply.github.com>
Co-authored-by: hyoung-90 <58063867+hyoung-90@users.noreply.github.com>
2020-01-09 17:43:14 +01:00
Alexander Wels
f090ddc2e6
Update Import controller to use runtime controller library. ( #1054 )
...
Refactor import related utilities out of util.go into the controller.
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-12-20 19:28:43 +01:00
Alexander Wels
5c34f97ea8
Move CDI config related functions to config controller from utils. ( #1057 )
...
Increase code coverage for these functions
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-12-18 22:42:42 +01:00
Alexander Wels
889f231300
Use controller library for config controller ( #1034 )
...
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-12-09 15:54:25 +01:00
maya-r
381fea1f0e
Provide a more verbose error. ( #1023 )
...
Use the term that appears in YAML files, volumeMode, and print
which one it is (may be an implicit value picked from the default)
Signed-off-by: Maya Rashish <mrashish@redhat.com>
2019-11-14 16:09:17 +01:00
Michael Henriksen
66a1c8c996
Unique client cert per clone source pod ( #987 )
...
* unique cert per clone source pod
Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
* upload controller shouldn't cache certs
Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
* fix test variable names
Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2019-10-09 15:10:55 -04:00
Michael Henriksen
834b85ecbf
Network clone ( #897 )
...
* network cloning
* fix clone progress
2019-08-01 16:01:25 -04:00
Michael Henriksen
cc99e0c337
token validation broken
2019-07-16 00:20:40 -04:00
Michael Henriksen
ec52c85a25
Validating webhook and token authorization for PVC cloning ( #869 )
...
* baseline refactoring of webhook package
* datavolume clone validation webhook
* rename datavolumes/clone-init to datavolumes/source
* add RBAC doc
* updates from review
* make clone permission check exportable function
* force dumb cloning in in functional test
2019-07-09 14:02:31 -04:00
Michael Henriksen
019c843586
make clone pods use selinux type spc_t instead of privileged ( #875 )
...
* make clone pods use selinux type spc_t instead of privileged
* fix block mode related tests
2019-07-08 13:58:42 -04:00
Alexander Wels
b538ab3190
Set running user to the one defined in the docker file.
...
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-06-12 16:55:37 -04:00
Michael Henriksen
d22e5c0c6f
run upload/import pods as nonroot
2019-06-05 17:28:15 -04:00
Michael Henriksen
4c7566f1b7
RunAsUser causing issue on OpenShift so let's get rid of it
2019-06-05 16:16:23 -04:00
Michael Henriksen
bc240a91d9
dont't run as root
2019-06-05 16:16:22 -04:00
Irit goihman
be67c1c772
update IsOpenShift function with ocp4 changes
...
Signed-off-by: Irit goihman <igoihman@redhat.com>
2019-06-03 22:39:08 +03:00
Michael Henriksen
5740cee5fd
fix host:port not allowed in insecure registry configmap
2019-05-29 17:05:55 -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
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
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
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
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
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
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
Michael Henriksen
717ceaa919
add ability for user to specify certs for import from registry
2019-02-18 09:06:46 -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
tavni
c245fe2ae6
Adding DataVolume support for unpacking imported archive
...
Signed-off-by: tavni <tavni@redhat.com>
2019-01-08 15:10:02 +02:00