Skip to content

Commit

Permalink
Fix Cloud Native Restore Path
Browse files Browse the repository at this point in the history
  • Loading branch information
pallav-px committed May 6, 2024
1 parent d8681a0 commit df6df4e
Show file tree
Hide file tree
Showing 8 changed files with 188 additions and 92 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/hashicorp/go-version v1.6.0
github.com/kubernetes-csi/external-snapshotter/client/v4 v4.2.0
github.com/kubernetes-incubator/external-storage v0.20.4-openstorage-rc7
github.com/libopenstorage/stork v1.4.1-0.20240502172400-885982c36058
github.com/libopenstorage/stork v1.4.1-0.20240506103309-0605fa31d8ff
github.com/portworx/pxc v0.33.0
github.com/portworx/sched-ops v1.20.4-rc1.0.20240424153814-f3083bdb4578
github.com/sirupsen/logrus v1.9.3
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -3362,8 +3362,8 @@ github.com/libopenstorage/stork v1.4.1-0.20230502135851-9cacb19e1df5/go.mod h1:R
github.com/libopenstorage/stork v1.4.1-0.20230519043154-cbc10dffaf19/go.mod h1:Xm4DHoViynFXMQKBXGj3IkA77LY2RBFkNtv6vbo3wNw=
github.com/libopenstorage/stork v1.4.1-0.20230601053837-5dd68f026569/go.mod h1:+mKPMCPNhS/XOF2RPcNFijkr67CCCWp0o8OXVG6xxAk=
github.com/libopenstorage/stork v1.4.1-0.20230610103146-72cf75320066/go.mod h1:Yst+fnOYjWk6SA5pXZBKm19wtiinjxQ/vgYTXI3k80Q=
github.com/libopenstorage/stork v1.4.1-0.20240502172400-885982c36058 h1:bjV6pxioNGTmK900pwF9UQ2Te5ov1lsoH+1jha9dFWg=
github.com/libopenstorage/stork v1.4.1-0.20240502172400-885982c36058/go.mod h1:kp5qtpq+BgjL5WqiOpDvbPH1WGReO5AaqXDbb+XpvzM=
github.com/libopenstorage/stork v1.4.1-0.20240506103309-0605fa31d8ff h1:MEz/7q5zYBJaX6aLSxOcDWoOLZCb5a7jJlEkYtZ/t6A=
github.com/libopenstorage/stork v1.4.1-0.20240506103309-0605fa31d8ff/go.mod h1:kp5qtpq+BgjL5WqiOpDvbPH1WGReO5AaqXDbb+XpvzM=
github.com/libopenstorage/systemutils v0.0.0-20160208220149-44ac83be3ce1/go.mod h1:xwNGC7xiz/BQ/wbMkvHujL8Gjgseg+x41xMek7sKRRQ=
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de h1:9TO3cAIGXtEhnIaL+V+BEER86oLrvS+kWobKpbJuye0=
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de/go.mod h1:zAbeS9B/r2mtpb6U+EI2rYA5OAXxsYw6wTamcNW+zcE=
Expand Down
2 changes: 1 addition & 1 deletion pkg/executor/nfs/nfsrestoreresources.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ func getPVCToPVMapping(allObjects []runtime.Unstructured) (map[string]*v1.Persis
}

func isGenericCSIPersistentVolume(pv *v1.PersistentVolume) (bool, error) {
driverName, err := volume.GetPVDriver(pv)
driverName, err := volume.GetPVDriverForRestore(pv)
if err != nil {
return false, err
}
Expand Down
28 changes: 28 additions & 0 deletions vendor/github.com/libopenstorage/stork/drivers/volume/volume.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit df6df4e

Please sign in to comment.