containerized-data-importer/tests
Arnon Gilboa 0bc6a8aeca
Disable DV GC by default (#2754)
* Disable DV GC by default

DataVolume garbage collection is a nice feature, but unfortunately it
violates fundamental principle of Kubernetes. CR should not be
auto-deleted when it completes its role (Job with TTLSecondsAfter-
Finished is an exception), and once CR was created we can assume it is
there until explicitly deleted. In addition, CR should keep idempotency,
so the same CR manifest can be applied multiple times, as long as it is
a valid update (e.g. DataVolume validation webhook does not allow
updating the spec).

When GC is enabled, some systems (e.g GitOps / ArgoCD) may require a
workaround (DV annotation deleteAfterCompletion = "false") to prevent
GC and function correctly.

On the next kubevirt-bot Bump kubevirtci PR (with bump-cdi), it will
fail on all kubevirtci lanes with tests referring DVs, as the tests
IsDataVolumeGC() looks at CDIConfig Spec.DataVolumeTTLSeconds and
assumes default is enabled. This should be fixed there.

Signed-off-by: Arnon Gilboa <agilboa@redhat.com>

* Fix test waiting for PVC deletion with UID

Signed-off-by: Arnon Gilboa <agilboa@redhat.com>

* Fix clone test assuming DV was GCed

Signed-off-by: Arnon Gilboa <agilboa@redhat.com>

* Fix DIC controller DV/PVC deletion when snapshot is ready

Signed-off-by: Arnon Gilboa <agilboa@redhat.com>

---------

Signed-off-by: Arnon Gilboa <agilboa@redhat.com>
2023-06-20 21:09:19 +02:00
..
framework Integration of Data volume using CDI populators (#2722) 2023-06-14 03:16:53 +02:00
images Google Cloud Storage Import Support (#2615) 2023-03-22 16:49:29 +00:00
manifests Add a webhook for import and upload populator CRs (#2707) 2023-05-10 18:45:11 +02:00
reporters update k8s deps to 18.6 and controller runtime to 0.6.2 (#1330) 2020-08-07 14:09:52 +02:00
utils Disable DV GC by default (#2754) 2023-06-20 21:09:19 +02:00
api_validation_test.go Integration of Data volume using CDI populators (#2722) 2023-06-14 03:16:53 +02:00
apiserver_test.go Remove leader election test (#2745) 2023-06-09 19:04:57 +02:00
badserver_test.go Start integrate golangci lint into CI (#2675) 2023-04-11 13:59:33 +01:00
basic_sanity_test.go enable ginkgolinter and fix findings (#2703) 2023-05-04 13:07:36 +02:00
BUILD.bazel Remove leader election test (#2745) 2023-06-09 19:04:57 +02:00
cdiconfig_test.go golangci-lint: Enable errcheck (#2696) 2023-04-25 20:40:16 +02:00
certrotation_test.go enable ginkgolinter and fix findings (#2703) 2023-05-04 13:07:36 +02:00
clone-populator_test.go Allow snapshots as format for DataImportCron created sources (#2700) 2023-06-08 17:29:01 +02:00
cloner_test.go Disable DV GC by default (#2754) 2023-06-20 21:09:19 +02:00
csiclone_test.go Integration of Data volume using CDI populators (#2722) 2023-06-14 03:16:53 +02:00
dataimportcron_test.go Disable DV GC by default (#2754) 2023-06-20 21:09:19 +02:00
datasource_test.go Allow snapshots as format for DataImportCron created sources (#2700) 2023-06-08 17:29:01 +02:00
datavolume_test.go Integration of Data volume using CDI populators (#2722) 2023-06-14 03:16:53 +02:00
explain_test.go Split up utils.go to logical divisions (#2310) 2022-07-04 10:48:40 +02:00
external_population_test.go Integration of Data volume using CDI populators (#2722) 2023-06-14 03:16:53 +02:00
imageio-inventory.go enable ginkgolinter and fix findings (#2703) 2023-05-04 13:07:36 +02:00
import_proxy_test.go enable ginkgolinter and fix findings (#2703) 2023-05-04 13:07:36 +02:00
import_test.go Integration of Data volume using CDI populators (#2722) 2023-06-14 03:16:53 +02:00
local_volume_test.go Split and refactor DV controller (#2483) 2022-12-22 01:03:15 +00:00
monitoring_test.go enable ginkgolinter and fix findings (#2703) 2023-05-04 13:07:36 +02:00
operator_test.go Integration of Data volume using CDI populators (#2722) 2023-06-14 03:16:53 +02:00
rbac_test.go enable ginkgolinter and fix findings (#2703) 2023-05-04 13:07:36 +02:00
smartclone_test.go PVC Clone Populator (#2709) 2023-05-24 05:11:52 +02:00
static-volume_test.go update k8s libs to 1.26. (#2687) 2023-04-18 19:30:40 +01:00
tests_suite_test.go Clone from VolumeSnapshot source (#2522) 2023-02-03 04:44:13 +01:00
transfer_test.go Correctly wait for resourcequota "ready" state in tests (#2674) 2023-04-19 14:45:51 +01:00
transport_test.go enable ginkgolinter and fix findings (#2703) 2023-05-04 13:07:36 +02:00
upgrade_test.go Simplify upgrade testing, and only test v1beta1 DVs (#2618) 2023-03-06 14:28:07 +00:00
upload_test.go Prepare CDI testing for the upcoming non-CSI lane (#2730) 2023-06-06 04:30:42 +02:00
webhook_test.go Allow snapshots as format for DataImportCron created sources (#2700) 2023-06-08 17:29:01 +02:00