mirror of
https://github.com/kubevirt/containerized-data-importer.git
synced 2025-06-03 06:30:22 +00:00

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>
10 lines
209 B
YAML
10 lines
209 B
YAML
apiVersion: snapshot.storage.k8s.io/v1alpha1
|
|
kind: VolumeSnapshot
|
|
metadata:
|
|
name: new-snapshot-demo
|
|
spec:
|
|
snapshotClassName: csi-hostpath-snapclass
|
|
source:
|
|
name: hpvc
|
|
kind: PersistentVolumeClaim
|