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

Newer releases of CDI no longer contain v1alpha1 support, so we can't blindly apply v1alpha1 DVs. Any old version DV is good enough, nothing specific to v1alpha1, so let's remove that variant. While here, make the DVs for upgrade testing always contain the annotation to not be garbage collected. This helps simplify the cluster-sync logic. Signed-off-by: Maya Rashish <mrashish@redhat.com>
25 lines
602 B
YAML
25 lines
602 B
YAML
# This example assumes you are using a default storage class
|
|
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: cdi-testing-old-version-artifacts
|
|
---
|
|
apiVersion: cdi.kubevirt.io/v1beta1
|
|
kind: DataVolume
|
|
metadata:
|
|
name: olddv
|
|
namespace: cdi-testing-old-version-artifacts
|
|
annotations:
|
|
cdi.kubevirt.io/storage.bind.immediate.requested: "true"
|
|
cdi.kubevirt.io/storage.deleteAfterCompletion: "false"
|
|
spec:
|
|
source:
|
|
http:
|
|
url: "http://cdi-file-host.{{ .Namespace }}/tinyCore.iso"
|
|
pvc:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 500Mi
|