Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: yaroslavborbat <[email protected]>
  • Loading branch information
yaroslavborbat committed Jan 16, 2025
1 parent 05b6295 commit 132b877
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions images/virt-artifact/patches/032-hotplug-container-disk.patch
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,20 @@ index 490cc445ef..4b7dbc12fe 100644
hotplugVolumes = append(hotplugVolumes, vmiVolume.DeepCopy())
}
}
diff --git a/pkg/storage/types/pvc.go b/pkg/storage/types/pvc.go
index c8f387db16..23f11f2cad 100644
--- a/pkg/storage/types/pvc.go
+++ b/pkg/storage/types/pvc.go
@@ -144,6 +144,9 @@ func GetPVCsFromVolumes(volumes []virtv1.Volume) map[string]string {
func VirtVolumesToPVCMap(volumes []*virtv1.Volume, pvcStore cache.Store, namespace string) (map[string]*k8sv1.PersistentVolumeClaim, error) {
volumeNamesPVCMap := make(map[string]*k8sv1.PersistentVolumeClaim)
for _, volume := range volumes {
+ if volume.ContainerDisk != nil {
+ continue
+ }
claimName := PVCNameFromVirtVolume(volume)
if claimName == "" {
return nil, fmt.Errorf("volume %s is not a PVC or Datavolume", volume.Name)
diff --git a/pkg/virt-api/rest/subresource.go b/pkg/virt-api/rest/subresource.go
index b5d62f5af5..6a3e2b4143 100644
--- a/pkg/virt-api/rest/subresource.go
Expand Down

0 comments on commit 132b877

Please sign in to comment.