Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Daniil Antoshin <[email protected]>
  • Loading branch information
danilrwx committed Jan 22, 2025
1 parent 52e5145 commit 44e9e61
Showing 1 changed file with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,10 @@ func (ds ObjectRefVirtualDiskSnapshot) StoreToDVCR(ctx context.Context, vi *virt

spec := corev1.PersistentVolumeClaimSpec{
AccessModes: accessModes,
DataSourceRef: &corev1.TypedObjectReference{
APIGroup: ptr.To(vs.GroupVersionKind().Group),
Kind: vs.Kind,
Name: vs.Name,
Namespace: &vs.Namespace,
DataSource: &corev1.TypedLocalObjectReference{
APIGroup: ptr.To(vs.GroupVersionKind().Group),
Kind: vs.Kind,
Name: vs.Name,
},
}

Expand Down Expand Up @@ -370,11 +369,10 @@ func (ds ObjectRefVirtualDiskSnapshot) StoreToPVC(ctx context.Context, vi *virtv

spec := corev1.PersistentVolumeClaimSpec{
AccessModes: accessModes,
DataSourceRef: &corev1.TypedObjectReference{
APIGroup: ptr.To(vs.GroupVersionKind().Group),
Kind: vs.Kind,
Name: vs.Name,
Namespace: &vs.Namespace,
DataSource: &corev1.TypedLocalObjectReference{
APIGroup: ptr.To(vs.GroupVersionKind().Group),
Kind: vs.Kind,
Name: vs.Name,
},
}

Expand Down

0 comments on commit 44e9e61

Please sign in to comment.