Skip to content

Commit

Permalink
fix rr selector error
Browse files Browse the repository at this point in the history
  • Loading branch information
qmhu committed Aug 26, 2022
1 parent f55447e commit 7498f48
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/controller/recommendation/recommendation_rule_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,15 +337,15 @@ func (c *RecommendationRuleController) getIdentities(ctx context.Context, recomm
}

for i := range filterdUnstructureds {
k := objRefKey(rs.Kind, rs.APIVersion, unstructureds[i].GetNamespace(), unstructureds[i].GetName())
k := objRefKey(rs.Kind, rs.APIVersion, filterdUnstructureds[i].GetNamespace(), filterdUnstructureds[i].GetName())
if _, exists := identities[k]; !exists {
identities[k] = ObjectIdentity{
Namespace: unstructureds[i].GetNamespace(),
Name: unstructureds[i].GetName(),
Namespace: filterdUnstructureds[i].GetNamespace(),
Name: filterdUnstructureds[i].GetName(),
Kind: rs.Kind,
APIVersion: rs.APIVersion,
Labels: unstructureds[i].GetLabels(),
Object: unstructureds[i],
Labels: filterdUnstructureds[i].GetLabels(),
Object: filterdUnstructureds[i],
}
}
}
Expand Down

0 comments on commit 7498f48

Please sign in to comment.