Skip to content

Commit

Permalink
resource controller: fix retrieval of locations with deletion timestamps
Browse files Browse the repository at this point in the history
Signed-off-by: David Festal <dfestal@redhat.com>
  • Loading branch information
davidfestal committed Oct 4, 2022
1 parent 7b33e59 commit 910791f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/reconciler/workload/resource/resource_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ func locations(annotations, labels map[string]string, skipPending bool) (locatio
}
for k := range annotations {
if strings.HasPrefix(k, workloadv1alpha1.InternalClusterDeletionTimestampAnnotationPrefix) {
deleting.Insert(strings.TrimPrefix(k, workloadv1alpha1.ClusterResourceStateLabelPrefix))
deleting.Insert(strings.TrimPrefix(k, workloadv1alpha1.InternalClusterDeletionTimestampAnnotationPrefix))
}
}
return
Expand Down

0 comments on commit 910791f

Please sign in to comment.