containerized-data-importer/manifests/example
Matthew Arnold dc6bad6473
Fill out VDDK data volume source. (#1320)
* Add support for a VDDK datasource to the controllers

This commit does not implement the VDDK datasource. It simply
adds the DataVolumeSourceVDDK type and adds support to the
datavolume and import controllers for it. The datasource itself
will need to be done in a follow-up.

Signed-off-by: Sam Lucidi <slucidi@redhat.com>

* Fix tests and clean up lint

Signed-off-by: Sam Lucidi <slucidi@redhat.com>

* Add DataVolumeSourceVDDK to the v1alpha1 api group

Signed-off-by: Sam Lucidi <slucidi@redhat.com>

* Install nbdkit.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Add govmomi to vendor directory.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Integrate govmomi into build.

Incomplete! This allows 'find' and 'object' imports from govmomi, but
further dependencies may require more bazel tweaks later.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Create a container image just to hold the VDDK.

Mount the VDDK folder to /opt. Also copy the libxcrypt-compat RPM to
/opt for run-time installation as a temporary workaround for my
inability to install it at container creation time. Make VDDK optional
by storing a dummy file in its directory, so an empty VDDK directory
will not break the build.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Fill in VDDK data source.

Add the simplest possible VDDK data source: set up an nbdkit server with
the given VMware parameters, and copy data out using qemu-img.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Add vddk to resource validation schema.

Stops "error validating data" messages.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Move libxcrypt-compat install out of VDDK image.

Requiring users to add this to the VDDK image is kind of onerous, so
move it straight into the importer image instead.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Generate BUILD.bazel for the rest of govmomi.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Get VDDK sidecar image from v2v-vmware ConfigMap.

Convention from https://github.com/kubevirt/web-ui-components/pull/534

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Reduce nbdkit startup timeout.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Update govmomi dependencies.

Cleans up 'inconsistent vendoring' errors.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Fix schema verification test.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Change disk.raw to disk.img.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Add vCenter simulator for VDDK datasource tests.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Functional test with vcsim and dummy VDDK plugin.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Clean up lint errors.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Check kubevirt-hyperconverged namespace for VDDK.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Add VDDK unit tests and API functional test.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Read a raw image for VDDK test plugin.

Have the fake VDDK test plugin for nbdkit read a raw image passed in
/opt/updates/nbdtest.img instead of returning fixed data.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Add some documentation about VDDK data sources.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Remove unit test focus and trailing spaces.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Use updated build container image.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Add some extra comments about VDDK fields.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Clarify VDDK ConfigMap a little more.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Clarify namespace for vddk-init sidecar.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Remove NodePort from vCenter simulator manifest.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Re-word explanations on VDDK source types.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Add VDDK to comment with types needing URL check.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Rebuild types.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Move AnnThumbprint to storage.import.vddk.thumbprint.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Remove run-time installation of libxcrypt-compat.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Remove fixed namespaces for vddk-init reference.

The importer now looks for the v2v-vmware ConfigMap in the current CDI
namespace instead of openshift-cnv/kubevirt-hyperconverged.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Find CDI install namespace from data volume test.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

Co-authored-by: Sam Lucidi <slucidi@redhat.com>
2020-09-11 23:37:22 +02:00
..
blank-image-datavolume.yaml move api groups to v1beta1 (#1232) 2020-07-10 15:47:38 +02:00
cert-configmap.yaml update docs for https cert configuration 2019-03-15 14:08:45 -04:00
clone-block-datavolume.yaml move api groups to v1beta1 (#1232) 2020-07-10 15:47:38 +02:00
clone-datavolume.yaml move api groups to v1beta1 (#1232) 2020-07-10 15:47:38 +02:00
endpoint-secret.yaml Refactor Controller to internally setup event handlers 2018-04-26 15:34:35 -05:00
example-cdiconfig.yaml move api groups to v1beta1 (#1232) 2020-07-10 15:47:38 +02:00
import-archive-block-datavolume.yaml move api groups to v1beta1 (#1232) 2020-07-10 15:47:38 +02:00
import-archive-datavolume.yaml move api groups to v1beta1 (#1232) 2020-07-10 15:47:38 +02:00
import-block-pv.yaml Adding support to import disk image into Block PV 2019-03-28 11:43:56 +02:00
import-kubevirt-block-datavolume.yaml move api groups to v1beta1 (#1232) 2020-07-10 15:47:38 +02:00
import-kubevirt-datavolume-secret.yaml move api groups to v1beta1 (#1232) 2020-07-10 15:47:38 +02:00
import-kubevirt-datavolume.yaml move api groups to v1beta1 (#1232) 2020-07-10 15:47:38 +02:00
registry-image-block-datavolume.yaml move api groups to v1beta1 (#1232) 2020-07-10 15:47:38 +02:00
registry-image-datavolume.yaml move api groups to v1beta1 (#1232) 2020-07-10 15:47:38 +02:00
upload-block-datavolume-token.yaml move api groups to v1beta1 (#1232) 2020-07-10 15:47:38 +02:00
upload-block-datavolume.yaml move api groups to v1beta1 (#1232) 2020-07-10 15:47:38 +02:00
upload-datavolume-token.yaml move api groups to v1beta1 (#1232) 2020-07-10 15:47:38 +02:00
upload-datavolume.yaml move api groups to v1beta1 (#1232) 2020-07-10 15:47:38 +02:00
vddk-configmap.yaml Fill out VDDK data volume source. (#1320) 2020-09-11 23:37:22 +02:00
vm-dv.yaml fixing names issue as the image is the cirros and the names where referencing to fedora (#1011) 2019-11-08 07:57:12 -05:00