Skip to content

Commit

Permalink
Check for the rest of the MR secrets even though one is not found (ga…
Browse files Browse the repository at this point in the history
  • Loading branch information
shafeeqes authored Jan 10, 2024
1 parent 886ee8b commit 9216499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gardenlet/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ func cleanupGRMSecretFinalizers(ctx context.Context, seedClient client.Client, l
secret := &corev1.Secret{}
if err := seedClient.Get(ctx, client.ObjectKey{Namespace: mr.Namespace, Name: ref.Name}, secret); err != nil {
if apierrors.IsNotFound(err) {
return nil
continue
}
return fmt.Errorf("failed to get secret '%s': %w", kubernetesutils.Key(mr.Namespace, ref.Name), err)
}
Expand Down

0 comments on commit 9216499

Please sign in to comment.