Do not output confusing image names when setting up watcher jobs + fix multiwatcher stuck with initial policy (#821)

pull/826/head 0.20.1-beta.3
David 2025-06-16 14:46:04 +02:00 committed by GitHub
parent 0a7e72774e
commit ce7a4aa161
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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()