Skip to content

Commit 985a915

Browse files
authored
Merge pull request #632 from fluxcd/event-revision-annotation
2 parents 0147495 + 7ca3934 commit 985a915

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

controllers/bucket_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,8 +570,8 @@ func (r *BucketReconciler) reconcileArtifact(ctx context.Context, obj *sourcev1.
570570
return sreconcile.ResultEmpty, e
571571
}
572572
r.annotatedEventLogf(ctx, obj, map[string]string{
573-
"revision": artifact.Revision,
574-
"checksum": artifact.Checksum,
573+
sourcev1.GroupVersion.Group + "/revision": artifact.Revision,
574+
sourcev1.GroupVersion.Group + "/checksum": artifact.Checksum,
575575
}, corev1.EventTypeNormal, "NewArtifact", "fetched %d files from '%s'", index.Len(), obj.Spec.BucketName)
576576

577577
// Record it on the object

controllers/gitrepository_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,8 +519,8 @@ func (r *GitRepositoryReconciler) reconcileArtifact(ctx context.Context,
519519
return sreconcile.ResultEmpty, e
520520
}
521521
r.AnnotatedEventf(obj, map[string]string{
522-
"revision": artifact.Revision,
523-
"checksum": artifact.Checksum,
522+
sourcev1.GroupVersion.Group + "/revision": artifact.Revision,
523+
sourcev1.GroupVersion.Group + "/checksum": artifact.Checksum,
524524
}, corev1.EventTypeNormal, "NewArtifact", "stored artifact for commit '%s'", commit.ShortMessage())
525525

526526
// Record it on the object

controllers/helmchart_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,8 +676,8 @@ func (r *HelmChartReconciler) reconcileArtifact(ctx context.Context, obj *source
676676

677677
// Publish an event
678678
r.AnnotatedEventf(obj, map[string]string{
679-
"revision": artifact.Revision,
680-
"checksum": artifact.Checksum,
679+
sourcev1.GroupVersion.Group + "/revision": artifact.Revision,
680+
sourcev1.GroupVersion.Group + "/checksum": artifact.Checksum,
681681
}, corev1.EventTypeNormal, reasonForBuild(b), b.Summary())
682682

683683
// Update symlink on a "best effort" basis

controllers/helmrepository_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,8 @@ func (r *HelmRepositoryReconciler) reconcileArtifact(ctx context.Context, obj *s
453453
size := units.HumanSize(float64(fi.Size()))
454454

455455
r.AnnotatedEventf(obj, map[string]string{
456-
"revision": artifact.Revision,
457-
"checksum": artifact.Checksum,
456+
sourcev1.GroupVersion.Group + "/revision": artifact.Revision,
457+
sourcev1.GroupVersion.Group + "/checksum": artifact.Checksum,
458458
}, corev1.EventTypeNormal, "NewArtifact", "fetched index of size %s from '%s'", size, chartRepo.URL)
459459

460460
// Record it on the object.

0 commit comments

Comments
 (0)