Skip to content

Commit

Permalink
fix(api): add rbac patch for ingress and fix vd reconciliation
Browse files Browse the repository at this point in the history
Add patch rule for ingress
Fix vd reconciliation

Signed-off-by: Isteb4k <dmitry.rakitin@flant.com>
  • Loading branch information
Isteb4k authored Sep 19, 2024
1 parent a435890 commit f98dba8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ func (ds UploadDataSource) Sync(ctx context.Context, vd *virtv2.VirtualDisk) (bo

return requeue, nil
case !common.IsPodComplete(pod):
log.Info("Provisioning to DVCR is in progress", "podPhase", pod.Status.Phase)

err = ds.statService.CheckPod(pod)
if err != nil {
vd.Status.Phase = virtv2.DiskFailed
Expand Down Expand Up @@ -167,9 +165,11 @@ func (ds UploadDataSource) Sync(ctx context.Context, vd *virtv2.VirtualDisk) (bo
condition.Reason = vdcondition.WaitForUserUpload
condition.Message = "Waiting for the user upload."

return false, nil
return true, nil
}

log.Info("Provisioning to DVCR is in progress", "podPhase", pod.Status.Phase)

vd.Status.Phase = virtv2.DiskProvisioning
condition.Status = metav1.ConditionFalse
condition.Reason = vdcondition.Provisioning
Expand Down
1 change: 1 addition & 0 deletions templates/virtualization-controller/rbac-for-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ rules:
- delete
- list
- watch
- patch
- apiGroups:
- ""
resources:
Expand Down

0 comments on commit f98dba8

Please sign in to comment.