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>
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.
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.
- 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