Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/e2e/kubetest2-kops/aws/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ func (c Client) EnsureS3Bucket(ctx context.Context, region, bucketName string, p
CreateBucketConfiguration: bucketConfig,
},
)
var owned *types.BucketAlreadyOwnedByYou
if errors.As(err, &owned) {
// The SDK retried a CreateBucket whose first attempt had succeeded.
klog.Infof("Bucket %s already exists in this account", bucketName)
err = nil
}
if err != nil {
var exists *types.BucketAlreadyExists
if errors.As(err, &exists) {
Expand Down
Loading