@@ -224,7 +224,11 @@ func (b *BucketClaimListener) provisionBucketClaimOperation(ctx context.Context,
224224
225225 err = retry .RetryOnConflict (retry .DefaultRetry , func () error {
226226 // Fetch the latest version of the BucketClaim
227- latest , getErr := b .bucketClaims (bucketClaim .Namespace ).Get (ctx , bucketClaim .Name , metav1.GetOptions {})
227+ latest , getErr := b .bucketClaims (bucketClaim .Namespace ).Get (
228+ ctx ,
229+ bucketClaim .Name ,
230+ metav1.GetOptions {},
231+ )
228232 if getErr != nil {
229233 return getErr
230234 }
@@ -235,7 +239,11 @@ func (b *BucketClaimListener) provisionBucketClaimOperation(ctx context.Context,
235239
236240 // Try to update the status
237241 var updateErr error
238- bucketClaim , updateErr = b .bucketClaims (bucketClaim .Namespace ).UpdateStatus (ctx , latest , metav1.UpdateOptions {})
242+ bucketClaim , updateErr = b .bucketClaims (bucketClaim .Namespace ).UpdateStatus (
243+ ctx ,
244+ latest ,
245+ metav1.UpdateOptions {},
246+ )
239247 return updateErr
240248 })
241249 if err != nil {
@@ -248,7 +256,11 @@ func (b *BucketClaimListener) provisionBucketClaimOperation(ctx context.Context,
248256 // Update with retry logic for conflict errors
249257 err = retry .RetryOnConflict (retry .DefaultRetry , func () error {
250258 // Fetch the latest version of the BucketClaim
251- latest , getErr := b .bucketClaims (bucketClaim .Namespace ).Get (ctx , bucketClaim .Name , metav1.GetOptions {})
259+ latest , getErr := b .bucketClaims (bucketClaim .Namespace ).Get (
260+ ctx ,
261+ bucketClaim .Name ,
262+ metav1.GetOptions {},
263+ )
252264 if getErr != nil {
253265 return getErr
254266 }
@@ -258,7 +270,11 @@ func (b *BucketClaimListener) provisionBucketClaimOperation(ctx context.Context,
258270
259271 // Try to update
260272 var updateErr error
261- bucketClaim , updateErr = b .bucketClaims (bucketClaim .Namespace ).Update (ctx , latest , metav1.UpdateOptions {})
273+ bucketClaim , updateErr = b .bucketClaims (bucketClaim .Namespace ).Update (
274+ ctx ,
275+ latest ,
276+ metav1.UpdateOptions {},
277+ )
262278 return updateErr
263279 })
264280 if err != nil {
0 commit comments