Skip to content

Commit

Permalink
Do not check PVC if VM DV source is snapshot
Browse files Browse the repository at this point in the history
Signed-off-by: Arnon Gilboa <[email protected]>
  • Loading branch information
arnongilboa committed Dec 19, 2024
1 parent f49001b commit 1d3ffbd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/internal/checkup/checkup.go
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,11 @@ func (c *Checkup) checkVMIBoot(ctx context.Context, errStr *string) error {
return err
}

if c.goldenImageSnap != nil {
c.results.VMVolumeClone = "DV cloneType: snapshot"
return nil
}

pvc, err := c.client.GetPersistentVolumeClaim(ctx, c.namespace, getVMDvName(vmName))
if err != nil {
return err
Expand Down

0 comments on commit 1d3ffbd

Please sign in to comment.