Skip to content

Commit

Permalink
Revert "Avoid triggering reconcileTFJobs if no TFJob update (#796)" (#…
Browse files Browse the repository at this point in the history
…805)

This reverts commit 554d750.
  • Loading branch information
gaocegege authored and k8s-ci-robot committed Aug 30, 2018
1 parent f78e619 commit 1e8af2e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pkg/controller.v2/tfcontroller/tfjob.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,6 @@ func (tc *TFController) addTFJob(obj interface{}) {
func (tc *TFController) updateTFJob(old, cur interface{}) {
oldTFJob, err := tfJobFromUnstructured(old)
if err != nil {
log.Errorf("failed to convert old tfjob from unstructured %v, %v", old, err)
return
}
curTFJob, err := tfJobFromUnstructured(cur)
if err != nil {
log.Errorf("failed to convert cur tfjob from unstructured %v, %v", cur, err)
return
}
if curTFJob.ResourceVersion == oldTFJob.ResourceVersion {
// Periodic resync will send update events for all known TFJobs.
// Two different versions of the same TFJob will always have different RVs
return
}
log.Infof("Updating tfjob: %s", oldTFJob.Name)
Expand Down

0 comments on commit 1e8af2e

Please sign in to comment.