-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |