Skip to content

Commit

Permalink
gc
Browse files Browse the repository at this point in the history
  • Loading branch information
lburgazzoli committed Feb 3, 2025
1 parent c64b683 commit ad998ca
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pkg/services/gc/gc.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,7 @@ func (gc *GC) Run(
lo := metav1.ListOptions{LabelSelector: selector.String()}

for _, res := range resources {
rgvk := res.GroupVersionKind()

if _, ok := gc.options.unremovables[rgvk]; ok {
continue
}

canBeDeleted, err := ro.typePredicate(ctx, rgvk)
canBeDeleted, err := ro.typePredicate(ctx, res.GroupVersionKind())
if err != nil {
return 0, fmt.Errorf("cannot determine if resource %s can be deleted: %w", res.String(), err)
}
Expand Down

0 comments on commit ad998ca

Please sign in to comment.