Skip to content

Commit

Permalink
fix retrigger problem when upgradation
Browse files Browse the repository at this point in the history
  • Loading branch information
qmhu committed May 29, 2023
1 parent fa0f49c commit 893af29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/recommend.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func GetRunNumber(recommendation *analysisv1alpha1.Recommendation) (int32, error

func GetRecommendationRuleOwnerReference(recommend *analysisv1alpha1.Recommendation) *metav1.OwnerReference {
for _, ownerReference := range recommend.OwnerReferences {
if ownerReference.Kind == "RecommendationRule" {
if ownerReference.Kind == "RecommendationRule" || ownerReference.Kind == "Analytics" {
return &ownerReference
}
}
Expand Down

0 comments on commit 893af29

Please sign in to comment.