Skip to content

Commit

Permalink
restore node name for snapshot
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandr Stefurishin <alexandr.stefurishin@flant.com>
  • Loading branch information
Alexandr Stefurishin committed Nov 6, 2024
1 parent f59a720 commit f852a63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions images/sds-local-volume-csi/src/driver/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ func (d *Driver) CreateSnapshot(ctx context.Context, request *csi.CreateSnapshot
}

llvsSpec := v1alpha1.LVMLogicalVolumeSnapshotSpec{
NodeName: lvg.Status.Nodes[0].Name,
LVMVolumeGroupName: lvg.Name,
LVMLogicalVolumeName: sourceVolID,
}
Expand Down
2 changes: 1 addition & 1 deletion images/sds-local-volume-csi/src/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.22.3
require (
github.com/container-storage-interface/spec v1.10.0
github.com/deckhouse/sds-local-volume/api v0.0.0-20240903071950-ed9d3bba999b
github.com/deckhouse/sds-node-configurator/api v0.0.0-20241002163327-badc7136472f
github.com/deckhouse/sds-node-configurator/api v0.0.0-20241106194508-8a70a1bef9bf
github.com/go-logr/logr v1.4.2
github.com/golang/protobuf v1.5.4
github.com/google/uuid v1.6.0
Expand Down

0 comments on commit f852a63

Please sign in to comment.