forked from rook/rook
The AWS SDK v1 to v2 migration in #17468 left the S3Agent wrapper methods calling the SDK with context.TODO(), so S3 operations could not be cancelled when the controller context is cancelled. Add a leading context.Context parameter to CreateBucket, PutObjectInBucket, GetObjectInBucket, DeleteObjectInBucket, PutBucketPolicy, and GetBucketPolicy, forward it to the underlying client, and pass clusterInfo.Context from the bucket provisioner. Resolves #17526 Signed-off-by: Anas Khan <83116240+anxkhn@users.noreply.github.com>