Skip to content

Commit

Permalink
Make AzureSQL KeyVault secret deletion best effort (#1412)
Browse files Browse the repository at this point in the history
- It already was best effort in most places but we missed one.
  • Loading branch information
matthchr authored Apr 20, 2021
1 parent 061cb3a commit 0c94d5a
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,11 @@ func (s *AzureSqlUserManager) Ensure(ctx context.Context, obj runtime.Object, op
}
}

err = userSecretClient.Delete(
// Purposefully ignoring error here for now
userSecretClient.Delete(
ctx,
userSecretKey,
secrets.Flatten(true, toDelete...))
if err != nil {
return false, err
}

err = userSecretClient.Upsert(
ctx,
Expand Down

0 comments on commit 0c94d5a

Please sign in to comment.