mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
rebase: bump github.com/aws/aws-sdk-go from 1.44.220 to 1.44.249
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.220 to 1.44.249. - [Release notes](https://github.com/aws/aws-sdk-go/releases) - [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.220...v1.44.249) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
committed by
mergify[bot]
parent
c702264708
commit
dbb680e77b
1635
vendor/github.com/aws/aws-sdk-go/service/ec2/api.go
generated
vendored
1635
vendor/github.com/aws/aws-sdk-go/service/ec2/api.go
generated
vendored
File diff suppressed because it is too large
Load Diff
22
vendor/github.com/aws/aws-sdk-go/service/ec2/customizations.go
generated
vendored
22
vendor/github.com/aws/aws-sdk-go/service/ec2/customizations.go
generated
vendored
@ -11,6 +11,9 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
// ec2CopySnapshotPresignedUrlCustomization handler name
|
||||
ec2CopySnapshotPresignedUrlCustomization = "ec2CopySnapshotPresignedUrl"
|
||||
|
||||
// customRetryerMinRetryDelay sets min retry delay
|
||||
customRetryerMinRetryDelay = 1 * time.Second
|
||||
|
||||
@ -21,7 +24,10 @@ const (
|
||||
func init() {
|
||||
initRequest = func(r *request.Request) {
|
||||
if r.Operation.Name == opCopySnapshot { // fill the PresignedURL parameter
|
||||
r.Handlers.Build.PushFront(fillPresignedURL)
|
||||
r.Handlers.Build.PushFrontNamed(request.NamedHandler{
|
||||
Name: ec2CopySnapshotPresignedUrlCustomization,
|
||||
Fn: fillPresignedURL,
|
||||
})
|
||||
}
|
||||
|
||||
// only set the retryer on request if config doesn't have a retryer
|
||||
@ -48,13 +54,15 @@ func fillPresignedURL(r *request.Request) {
|
||||
|
||||
origParams := r.Params.(*CopySnapshotInput)
|
||||
|
||||
// Stop if PresignedURL/DestinationRegion is set
|
||||
if origParams.PresignedUrl != nil || origParams.DestinationRegion != nil {
|
||||
// Stop if PresignedURL is set
|
||||
if origParams.PresignedUrl != nil {
|
||||
return
|
||||
}
|
||||
|
||||
// Always use config region as destination region for SDKs
|
||||
origParams.DestinationRegion = r.Config.Region
|
||||
newParams := awsutil.CopyOf(r.Params).(*CopySnapshotInput)
|
||||
|
||||
newParams := awsutil.CopyOf(origParams).(*CopySnapshotInput)
|
||||
|
||||
// Create a new request based on the existing request. We will use this to
|
||||
// presign the CopySnapshot request against the source region.
|
||||
@ -82,8 +90,12 @@ func fillPresignedURL(r *request.Request) {
|
||||
clientInfo.Endpoint = resolved.URL
|
||||
clientInfo.SigningRegion = resolved.SigningRegion
|
||||
|
||||
// Copy handlers without Presigned URL customization to avoid an infinite loop
|
||||
handlersWithoutPresignCustomization := r.Handlers.Copy()
|
||||
handlersWithoutPresignCustomization.Build.RemoveByName(ec2CopySnapshotPresignedUrlCustomization)
|
||||
|
||||
// Presign a CopySnapshot request with modified params
|
||||
req := request.New(*cfg, clientInfo, r.Handlers, r.Retryer, r.Operation, newParams, r.Data)
|
||||
req := request.New(*cfg, clientInfo, handlersWithoutPresignCustomization, r.Retryer, r.Operation, newParams, r.Data)
|
||||
url, err := req.Presign(5 * time.Minute) // 5 minutes should be enough.
|
||||
if err != nil { // bubble error back up to original request
|
||||
r.Error = err
|
||||
|
Reference in New Issue
Block a user