containerized-data-importer/pkg/controller/common
Arnon Gilboa afb269737b
Suppress alerts to reduce noise of dependent ones (#3129)
* Suppress alerts to reduce noise of dependent ones

This is a follow-up to #2998 introducing the following changes to alert
rules:

- CDIDefaultStorageClassDegraded - do not fire when no default SC
  (either k8s or virt).
- CDIDataImportCronOutdated - do not fire when no default SC (either
  k8s or virt), as DIC import DVs use default SC.
- CDINoDefaultStorageClass - fire not only when there is a pending DV
  (and PVC) but also when DV has an empty status (waiting for default
  SC etc.)

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

* CR fixes

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

* Remove expensive func test

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

* Refactor updateDataImportCronCondition

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

* Add some verify comments

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

* Add IsDataVolumeUsingDefaultStorageClass helper for readability

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

---------

Signed-off-by: Arnon Gilboa <agilboa@redhat.com>
2024-04-07 20:47:51 +02:00
..
BUILD.bazel GetActiveCDI() should return success if single resource in error state (#3080) 2024-01-25 00:16:06 +01:00
checkpoint-util.go Support multi-stage imports in import populator (#2767) 2023-07-12 16:14:16 +02:00
controller_suite_test.go Update to ginkgo v2 (#2788) 2023-07-26 02:35:55 +02:00
runtime-util.go Split and refactor DV controller (#2483) 2022-12-22 01:03:15 +00:00
util_test.go GetActiveCDI() should return success if single resource in error state (#3080) 2024-01-25 00:16:06 +01:00
util.go Suppress alerts to reduce noise of dependent ones (#3129) 2024-04-07 20:47:51 +02:00