Skip to content

Commit

Permalink
fix: fix wrong parameter for resolveControllerRef (kubeflow#1583)
Browse files Browse the repository at this point in the history
  • Loading branch information
fighterhit authored Jul 21, 2022
1 parent 8c6eab2 commit f5c5dea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/common/util/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func OnDependentUpdateFunc(jc *common.JobController) func(updateEvent event.Upda

if controllerRefChanged && oldControllerRef != nil {
// The ControllerRef was changed. Sync the old controller, if any.
if job := resolveControllerRef(jc, oldObj.GetName(), oldControllerRef); job != nil {
if job := resolveControllerRef(jc, oldObj.GetNamespace(), oldControllerRef); job != nil {
logger.Infof("pod/service controller ref updated: %v, %v", newObj, oldObj)
return true
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/common/util/reconciler_generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func OnDependentUpdateFuncGeneric(jc *common.JobController) func(updateEvent eve

if controllerRefChanged && oldControllerRef != nil {
// The ControllerRef was changed. Sync the old controller, if any.
if job := resolveControllerRef(jc, oldObj.GetName(), oldControllerRef); job != nil {
if job := resolveControllerRef(jc, oldObj.GetNamespace(), oldControllerRef); job != nil {
logger.Infof("%s controller ref updated: %v, %v", kind, newObj, oldObj)
return true
}
Expand Down

0 comments on commit f5c5dea

Please sign in to comment.