Skip to content

Commit

Permalink
egoscale: update to v3.1.0 and fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sauterp committed Jul 17, 2024
1 parent 6db5cbf commit 2192f1f
Show file tree
Hide file tree
Showing 8 changed files with 133 additions and 56 deletions.
3 changes: 1 addition & 2 deletions driver/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,7 @@ func (d *controllerService) ControllerUnpublishVolume(ctx context.Context, req *

op, err := client.DetachBlockStorageVolume(ctx, volumeID)
if err != nil {
if errors.Is(err, v3.ErrNotFound) ||
(errors.Is(err, v3.ErrInvalidRequest) && strings.Contains(err.Error(), "Volume not attached")) {
if errors.Is(err, v3.ErrNotFound) || strings.Contains(err.Error(), "Volume not attached") {
return &csi.ControllerUnpublishVolumeResponse{}, nil
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ toolchain go1.22.2

require (
github.com/container-storage-interface/spec v1.8.0
github.com/exoscale/egoscale/v3 v3.0.0
github.com/exoscale/egoscale/v3 v3.1.0
github.com/golang/protobuf v1.5.3
github.com/stretchr/testify v1.8.4
golang.org/x/sys v0.20.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ github.com/elliotwutingfeng/asciiset v0.0.0-20230602022725-51bbb787efab h1:h1Ugj
github.com/elliotwutingfeng/asciiset v0.0.0-20230602022725-51bbb787efab/go.mod h1:GLo/8fDswSAniFG+BFIaiSPcK610jyzgEhWYPQwuQdw=
github.com/emicklei/go-restful/v3 v3.9.0 h1:XwGDlfxEnQZzuopoqxwSEllNcCOM9DhhFyhFIIGKwxE=
github.com/emicklei/go-restful/v3 v3.9.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc=
github.com/exoscale/egoscale/v3 v3.0.0 h1:ZQicKwICkjpZwiWnppF2pbYWONV8CZH/0eRspsN4ALY=
github.com/exoscale/egoscale/v3 v3.0.0/go.mod h1:lPsza7G+giSxdzvzaHSEcjEAYz/YTiu2bEEha9KVAc4=
github.com/exoscale/egoscale/v3 v3.1.0 h1:8MSA0j4TZbUiE6iIzTmoY0URa3RoGGuHhX5oamCql4o=
github.com/exoscale/egoscale/v3 v3.1.0/go.mod h1:lPsza7G+giSxdzvzaHSEcjEAYz/YTiu2bEEha9KVAc4=
github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA=
Expand Down
49 changes: 0 additions & 49 deletions vendor/github.com/exoscale/egoscale/v3/api.go

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

125 changes: 125 additions & 0 deletions vendor/github.com/exoscale/egoscale/v3/errors.go

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

2 changes: 2 additions & 0 deletions vendor/github.com/exoscale/egoscale/v3/schemas.go

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

2 changes: 1 addition & 1 deletion vendor/github.com/exoscale/egoscale/v3/version.go

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

2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ github.com/diskfs/go-diskfs/util
# github.com/elliotwutingfeng/asciiset v0.0.0-20230602022725-51bbb787efab
## explicit; go 1.11
github.com/elliotwutingfeng/asciiset
# github.com/exoscale/egoscale/v3 v3.0.0
# github.com/exoscale/egoscale/v3 v3.1.0
## explicit; go 1.22
github.com/exoscale/egoscale/v3
github.com/exoscale/egoscale/v3/credentials
Expand Down

0 comments on commit 2192f1f

Please sign in to comment.