Skip to content

Commit ce7a4aa

Browse files
Do not output confusing image names when setting up watcher jobs + fix multiwatcher stuck with initial policy (#821)
1 parent 0a7e727 commit ce7a4aa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

trigger/poll/multi_tags_watcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func (j *WatchRepositoryTagsJob) computeEvents(tags []string) ([]types.Event, er
9999

100100
// The fact that they are related, does not mean they share the exact same Policy configuration, so wee need
101101
// to calculate the tags here for each image.
102-
filteredTags = j.details.trackedImage.Policy.Filter(tags)
102+
filteredTags = trackedImage.Policy.Filter(tags)
103103

104104
for _, tag := range filteredTags {
105105

trigger/poll/watcher.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ func (w *RepositoryWatcher) addJob(ti *types.TrackedImage, schedule string) erro
271271
job := NewWatchRepositoryTagsJob(w.providers, w.registryClient, details)
272272
log.WithFields(log.Fields{
273273
"job_name": key,
274-
"image": ti.Image.String(),
275-
"digest": digest,
274+
"image": ti.Image.Registry() + "/" + ti.Image.ShortName(), // A watcher can be shared, so it makes little sense to specify tag depth here
275+
"digest": "", // A watcher can be shared, so it makes little sense to specify here a specific image digest used by one of the consumers
276276
"schedule": schedule,
277277
}).Info("trigger.poll.RepositoryWatcher: new watch repository tags job added")
278278
job.Run()

0 commit comments

Comments
 (0)