Browse Source

Merge pull request #694 from weaveworks/dont-run-auto-nops

Avoid running no-op update jobs
Michael Bridgen 3 years ago
parent
commit
4a9b9cfe94
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      daemon/images.go

+ 3
- 1
daemon/images.go View File

@@ -58,7 +58,9 @@ func (d *Daemon) pollForNewImages(logger log.Logger) {
58 58
 		}
59 59
 	}
60 60
 
61
-	d.UpdateManifests(update.Spec{Type: update.Auto, Spec: changes})
61
+	if len(changes.Changes) > 0 {
62
+		d.UpdateManifests(update.Spec{Type: update.Auto, Spec: changes})
63
+	}
62 64
 }
63 65
 
64 66
 func getTagPattern(services policy.ServiceMap, service flux.ServiceID, container string) string {

Loading…
Cancel
Save