From 5e82bbef055e84f5d10958be6aacffe8c63fbb86 Mon Sep 17 00:00:00 2001 From: Valeriy Khorunzhin Date: Wed, 25 Dec 2024 10:51:27 +0300 Subject: [PATCH] test cdi patch Signed-off-by: Valeriy Khorunzhin --- images/cdi-artifact/patches/022-kek.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 images/cdi-artifact/patches/022-kek.patch diff --git a/images/cdi-artifact/patches/022-kek.patch b/images/cdi-artifact/patches/022-kek.patch new file mode 100644 index 000000000..406ef1722 --- /dev/null +++ b/images/cdi-artifact/patches/022-kek.patch @@ -0,0 +1,23 @@ +diff --git a/pkg/controller/datavolume/controller-base.go b/pkg/controller/datavolume/controller-base.go +index acd09cb94..c4611dfed 100644 +--- a/pkg/controller/datavolume/controller-base.go ++++ b/pkg/controller/datavolume/controller-base.go +@@ -1035,6 +1035,7 @@ func (r *ReconcilerBase) updateConditions(dataVolume *cdiv1.DataVolume, pvc *cor + dataVolume.Status.Conditions = updateBoundCondition(dataVolume.Status.Conditions, pvc, message, reason) + dataVolume.Status.Conditions = UpdateReadyCondition(dataVolume.Status.Conditions, readyStatus, message, reason) + dataVolume.Status.Conditions = updateRunningCondition(dataVolume.Status.Conditions, anno) ++ dataVolume.Status.Conditions = updateCondition(dataVolume.Status.Conditions, dataVolumeKek, corev1.ConditionTrue, "kek", "kek") + } + + func (r *ReconcilerBase) emitConditionEvent(dataVolume *cdiv1.DataVolume, originalCond []cdiv1.DataVolumeCondition) { +diff --git a/pkg/controller/datavolume/patched_condition_type.go b/pkg/controller/datavolume/patched_condition_type.go +new file mode 100644 +index 000000000..bf12f084e +--- /dev/null ++++ b/pkg/controller/datavolume/patched_condition_type.go +@@ -0,0 +1,5 @@ ++package datavolume ++ ++import cdiv1 "kubevirt.io/containerized-data-importer-api/pkg/apis/core/v1beta1" ++ ++const dataVolumeKek cdiv1.DataVolumeConditionType = "Kek"