Skip to content

Commit

Permalink
Fix removing non-existing entries
Browse files Browse the repository at this point in the history
  • Loading branch information
kvaps committed Aug 1, 2024
1 parent 9fa99d6 commit 68f22a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/driver/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ func (s *provisionerServer) DriverDeleteBucket(
func (s *provisionerServer) revokeBucketAccess(ctx context.Context, userId string) error {
err := s.configureS3Access(ctx, userId, "", "", nil, true)
if err != nil {
// Check if the error is because the entry was not found
if grpc.Code(err) == codes.NotFound {
klog.InfoS("no entry found in filer store, treating as success", "user", userId)
return nil
}
return err
}

Expand Down

0 comments on commit 68f22a0

Please sign in to comment.