Skip to content

Commit

Permalink
Skip validation for deleted buckets
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Kovacs committed Oct 17, 2023
1 parent 8f0f874 commit 33fd11f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/controller/bucket/bucket_validation_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ func (b *BucketValidator) ValidateUpdate(ctx context.Context, oldObj, newObj run
return nil, errors.New(errNotBucket)
}

if bucket.ObjectMeta.DeletionTimestamp != nil {
return nil, nil
}

return nil, b.validateCreateOrUpdate(bucket)
}

Expand Down

0 comments on commit 33fd11f

Please sign in to comment.