Skip to content

Commit

Permalink
ocp: resolve conflicts
Browse files Browse the repository at this point in the history
Signed-off-by: Benny Zlotnik <[email protected]>
  • Loading branch information
bennyz authored and ahadas committed Jul 17, 2023
1 parent 054b8ce commit f237080
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/controller/plan/adapter/ocp/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -524,3 +524,15 @@ func createDataVolumeSpec(size resource.Quantity, storageClassName, url, configM
func pvcSourceName(namespace, name string) string {
return fmt.Sprintf("%s/%s", namespace, name)
}

// Build LUN PVs.
func (r *Builder) LunPersistentVolumes(vmRef ref.Ref) (pvs []core.PersistentVolume, err error) {
// do nothing
return
}

// Build LUN PVCs.
func (r *Builder) LunPersistentVolumeClaims(vmRef ref.Ref) (pvcs []core.PersistentVolumeClaim, err error) {
// do nothing
return
}
5 changes: 5 additions & 0 deletions pkg/controller/plan/adapter/ocp/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,8 @@ func (Client) RemoveSnapshots(vmRef ref.Ref, precopies []planapi.Precopy) error
func (Client) SetCheckpoints(vmRef ref.Ref, precopies []planapi.Precopy, datavolumes []cdi.DataVolume, final bool) (err error) {
return nil
}

func (r Client) DetachDisks(vmRef ref.Ref) (err error) {
// no-op
return
}

0 comments on commit f237080

Please sign in to comment.