Skip to content

Commit

Permalink
test cdi patch
Browse files Browse the repository at this point in the history
Signed-off-by: Valeriy Khorunzhin <[email protected]>
  • Loading branch information
Valeriy Khorunzhin committed Dec 25, 2024
1 parent 302b4f1 commit 5b95e9f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions images/cdi-artifact/patches/022-kek.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
diff --git a/pkg/controller/datavolume/controller-base.go b/pkg/controller/datavolume/controller-base.go
index acd09cb94..57ef75423 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, cdiv1.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..b38e495fa
--- /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"

0 comments on commit 5b95e9f

Please sign in to comment.