Skip to content

Commit 5c16469

Browse files
committed
Switch to client method for SignedURL call to inherit storage endpoint configuration
1 parent a84dd8b commit 5c16469

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

velero-plugin-for-gcp/object_store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,5 +342,5 @@ func (o *ObjectStore) CreateSignedURL(bucket, key string, ttl time.Duration) (st
342342
options.PrivateKey = o.privateKey
343343
}
344344

345-
return storage.SignedURL(bucket, key, &options)
345+
return o.client.Bucket(bucket).SignedURL(key, &options)
346346
}

0 commit comments

Comments
 (0)