Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Commit 1fbaac9

Browse files
committed
Fixing a bucketclaim object updation bug
1 parent e904a9e commit 1fbaac9

File tree

1 file changed

+2
-1
lines changed
  • container-object-storage-interface-controller/pkg/bucketclaim

1 file changed

+2
-1
lines changed

Diff for: container-object-storage-interface-controller/pkg/bucketclaim/bucketclaim.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ func (b *bucketClaimListener) Delete(ctx context.Context, bucketClaim *v1alpha1.
9999
// ErrInvalidBucketClass - BucketClass does not exist [requeue'd with exponential backoff]
100100
// ErrBucketAlreadyExists - BucketClaim already processed
101101
// non-nil err - Internal error [requeue'd with exponential backoff]
102-
func (b *bucketClaimListener) provisionBucketClaimOperation(ctx context.Context, bucketClaim *v1alpha1.BucketClaim) error {
102+
func (b *bucketClaimListener) provisionBucketClaimOperation(ctx context.Context, inputBucketClaim *v1alpha1.BucketClaim) error {
103+
bucketClaim := inputBucketClaim.DeepCopy()
103104
if bucketClaim.Status.BucketReady {
104105
return util.ErrBucketAlreadyExists
105106
}

0 commit comments

Comments
 (0)