Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Daniil Antoshin <[email protected]>
  • Loading branch information
danilrwx authored and Isteb4k committed Dec 25, 2024
1 parent 559faed commit 7e305d9
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,6 @@ func (ds HTTPDataSource) Sync(ctx context.Context, cvi *virtv2.ClusterVirtualIma
switch {
case isDiskProvisioningFinished(condition):
log.Info("Cluster virtual image provisioning finished: clean up")
ds.recorder.Event(
cvi,
corev1.EventTypeNormal,
virtv2.ReasonDataSourceDiskProvisioningCompleted,
"Disk provisioning finished: clean up",
)

cb.Status(metav1.ConditionTrue).
Reason(cvicondition.Ready).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,7 @@ func (ds ObjectRefDataSource) Sync(ctx context.Context, cvi *virtv2.ClusterVirtu

switch {
case isDiskProvisioningFinished(condition):
ds.recorder.Event(
cvi,
corev1.EventTypeNormal,
virtv2.ReasonDataSourceDiskProvisioningCompleted,
"Disk provisioning finished: clean up",
)
log.Info("Cluster virtual image provisioning finished: clean up")

cb.
Status(metav1.ConditionTrue).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,6 @@ func (ds ObjectRefVirtualDisk) Sync(ctx context.Context, cvi *virtv2.ClusterVirt
switch {
case isDiskProvisioningFinished(cb.Condition()):
log.Info("Cluster virtual image provisioning finished: clean up")
ds.recorder.Event(
cvi,
corev1.EventTypeNormal,
virtv2.ReasonDataSourceDiskProvisioningCompleted,
"Image provisioning finished: clean up",
)

cb.
Status(metav1.ConditionTrue).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ func (ds ObjectRefVirtualImageOnPvc) Sync(ctx context.Context, cvi *virtv2.Clust
switch {
case isDiskProvisioningFinished(cb.Condition()):
log.Info("Cluster virtual image provisioning finished: clean up")
ds.recorder.Event(
cvi,
corev1.EventTypeNormal,
virtv2.ReasonDataSourceDiskProvisioningCompleted,
"Image provisioning finished: clean up",
)

cb.
Status(metav1.ConditionTrue).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,7 @@ func (ds RegistryDataSource) Sync(ctx context.Context, cvi *virtv2.ClusterVirtua

switch {
case isDiskProvisioningFinished(condition):
ds.recorder.Event(
cvi,
corev1.EventTypeNormal,
virtv2.ReasonDataSourceDiskProvisioningCompleted,
"Image provisioning finished: clean up",
)
log.Info("Cluster virtual image provisioning finished: clean up")

cb.
Status(metav1.ConditionTrue).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,7 @@ func (ds UploadDataSource) Sync(ctx context.Context, cvi *virtv2.ClusterVirtualI

switch {
case isDiskProvisioningFinished(condition):
ds.recorder.Event(
cvi,
corev1.EventTypeNormal,
virtv2.ReasonDataSourceDiskProvisioningCompleted,
"Image provisioning finished: clean up",
)
log.Info("Cluster virtual image provisioning finished: clean up")

cb.
Status(metav1.ConditionTrue).
Expand Down

0 comments on commit 7e305d9

Please sign in to comment.