containerized-data-importer/manifests/templates/upgrade-testing-artifacts.yaml.in
Maya Rashish a623d6d071
Simplify upgrade testing, and only test v1beta1 DVs (#2618)
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>
2023-03-06 14:28:07 +00:00

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