Skip to content

Commit

Permalink
libvirt: Enable multiple PodVM image scenario
Browse files Browse the repository at this point in the history
Enable support for multiple PodVM images for libvirt provider

Fixes #1282

Signed-off-by: Ajay Victor <ajvictor@in.ibm.com>
  • Loading branch information
ajaypvictor committed Oct 11, 2024
1 parent 559d5d2 commit fa8465d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cloud-providers/libvirt/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ func (p *libvirtProvider) CreateInstance(ctx context.Context, podName, sandboxID
}
logger.Printf("LaunchSecurityType: %s", vm.launchSecurityType.String())

if spec.Image != "" {
logger.Printf("Choosing %s as libvirt volume for the PodVM image", spec.Image)
p.libvirtClient.volName = spec.Image
}

result, err := CreateDomain(ctx, p.libvirtClient, vm)
if err != nil {
logger.Printf("failed to create an instance : %v", err)
Expand Down

0 comments on commit fa8465d

Please sign in to comment.