Skip to content

Commit

Permalink
fix: actually use the snapshotType
Browse files Browse the repository at this point in the history
Oopsie daisie.

Signed-off-by: Oula Kuuva <[email protected]>
  • Loading branch information
Oula Kuuva committed Feb 27, 2024
1 parent beaaa5a commit bfe0ef1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions velero-plugin-for-gcp/volume_snapshotter.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,10 @@ func (b *VolumeSnapshotter) createSnapshot(snapshotName, volumeID, volumeAZ stri
}

gceSnap := compute.Snapshot{
Name: snapshotName,
Description: getSnapshotTags(tags, disk.Description, b.log),
SourceDisk: disk.SelfLink,
Name: snapshotName,
Description: getSnapshotTags(tags, disk.Description, b.log),
SourceDisk: disk.SelfLink,
SnapshotType: b.snapshotType,
}

if b.snapshotLocation != "" {
Expand All @@ -338,9 +339,10 @@ func (b *VolumeSnapshotter) createRegionSnapshot(snapshotName, volumeID, volumeR
}

gceSnap := compute.Snapshot{
Name: snapshotName,
Description: getSnapshotTags(tags, disk.Description, b.log),
SourceDisk: disk.SelfLink,
Name: snapshotName,
Description: getSnapshotTags(tags, disk.Description, b.log),
SourceDisk: disk.SelfLink,
SnapshotType: b.snapshotType,
}

if b.snapshotLocation != "" {
Expand Down

0 comments on commit bfe0ef1

Please sign in to comment.