Skip to content

Commit

Permalink
rollback targetref
Browse files Browse the repository at this point in the history
  • Loading branch information
qmhu committed May 23, 2023
1 parent 589c29c commit 412704a
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,7 @@ func (c *RecommendationRuleController) doReconcile(ctx context.Context, recommen
for _, id := range identities {
for _, recommender := range recommendationRule.Spec.Recommenders {
currMissions = append(currMissions, analysisv1alph1.RecommendationMission{
TargetRef: corev1.ObjectReference{
Name: id.Name,
Namespace: id.Namespace,
},
TargetRef: id.GetObjectReference(),
RecommenderRef: analysisv1alph1.Recommender{
Name: recommender.Name,
},
Expand Down Expand Up @@ -490,7 +487,7 @@ func executeMission(ctx context.Context, wg *sync.WaitGroup, recommenderMgr reco
klog.Infof("Successfully to create Recommendation %s", klog.KObj(recommendation))
}

mission.Message = "Success"
//mission.Message = "Success"
//mission.UID = recommendation.UID
mission.Name = recommendation.Name
mission.Namespace = recommendation.Namespace
Expand Down

0 comments on commit 412704a

Please sign in to comment.