Do not output confusing image names when setting up watcher jobs + fix multiwatcher stuck with initial policy (#821)
parent
0a7e72774e
commit
ce7a4aa161
|
|
@ -99,7 +99,7 @@ func (j *WatchRepositoryTagsJob) computeEvents(tags []string) ([]types.Event, er
|
|||
|
||||
// The fact that they are related, does not mean they share the exact same Policy configuration, so wee need
|
||||
// to calculate the tags here for each image.
|
||||
filteredTags = j.details.trackedImage.Policy.Filter(tags)
|
||||
filteredTags = trackedImage.Policy.Filter(tags)
|
||||
|
||||
for _, tag := range filteredTags {
|
||||
|
||||
|
|
|
|||
|
|
@ -271,8 +271,8 @@ func (w *RepositoryWatcher) addJob(ti *types.TrackedImage, schedule string) erro
|
|||
job := NewWatchRepositoryTagsJob(w.providers, w.registryClient, details)
|
||||
log.WithFields(log.Fields{
|
||||
"job_name": key,
|
||||
"image": ti.Image.String(),
|
||||
"digest": digest,
|
||||
"image": ti.Image.Registry() + "/" + ti.Image.ShortName(), // A watcher can be shared, so it makes little sense to specify tag depth here
|
||||
"digest": "", // A watcher can be shared, so it makes little sense to specify here a specific image digest used by one of the consumers
|
||||
"schedule": schedule,
|
||||
}).Info("trigger.poll.RepositoryWatcher: new watch repository tags job added")
|
||||
job.Run()
|
||||
|
|
|
|||
Loading…
Reference in New Issue