Merge pull request #632 from fluxcd/event-revision-annotation
This commit is contained in:
commit
985a915282
|
@ -570,8 +570,8 @@ func (r *BucketReconciler) reconcileArtifact(ctx context.Context, obj *sourcev1.
|
||||||
return sreconcile.ResultEmpty, e
|
return sreconcile.ResultEmpty, e
|
||||||
}
|
}
|
||||||
r.annotatedEventLogf(ctx, obj, map[string]string{
|
r.annotatedEventLogf(ctx, obj, map[string]string{
|
||||||
"revision": artifact.Revision,
|
sourcev1.GroupVersion.Group + "/revision": artifact.Revision,
|
||||||
"checksum": artifact.Checksum,
|
sourcev1.GroupVersion.Group + "/checksum": artifact.Checksum,
|
||||||
}, corev1.EventTypeNormal, "NewArtifact", "fetched %d files from '%s'", index.Len(), obj.Spec.BucketName)
|
}, corev1.EventTypeNormal, "NewArtifact", "fetched %d files from '%s'", index.Len(), obj.Spec.BucketName)
|
||||||
|
|
||||||
// Record it on the object
|
// Record it on the object
|
||||||
|
|
|
@ -519,8 +519,8 @@ func (r *GitRepositoryReconciler) reconcileArtifact(ctx context.Context,
|
||||||
return sreconcile.ResultEmpty, e
|
return sreconcile.ResultEmpty, e
|
||||||
}
|
}
|
||||||
r.AnnotatedEventf(obj, map[string]string{
|
r.AnnotatedEventf(obj, map[string]string{
|
||||||
"revision": artifact.Revision,
|
sourcev1.GroupVersion.Group + "/revision": artifact.Revision,
|
||||||
"checksum": artifact.Checksum,
|
sourcev1.GroupVersion.Group + "/checksum": artifact.Checksum,
|
||||||
}, corev1.EventTypeNormal, "NewArtifact", "stored artifact for commit '%s'", commit.ShortMessage())
|
}, corev1.EventTypeNormal, "NewArtifact", "stored artifact for commit '%s'", commit.ShortMessage())
|
||||||
|
|
||||||
// Record it on the object
|
// Record it on the object
|
||||||
|
|
|
@ -676,8 +676,8 @@ func (r *HelmChartReconciler) reconcileArtifact(ctx context.Context, obj *source
|
||||||
|
|
||||||
// Publish an event
|
// Publish an event
|
||||||
r.AnnotatedEventf(obj, map[string]string{
|
r.AnnotatedEventf(obj, map[string]string{
|
||||||
"revision": artifact.Revision,
|
sourcev1.GroupVersion.Group + "/revision": artifact.Revision,
|
||||||
"checksum": artifact.Checksum,
|
sourcev1.GroupVersion.Group + "/checksum": artifact.Checksum,
|
||||||
}, corev1.EventTypeNormal, reasonForBuild(b), b.Summary())
|
}, corev1.EventTypeNormal, reasonForBuild(b), b.Summary())
|
||||||
|
|
||||||
// Update symlink on a "best effort" basis
|
// Update symlink on a "best effort" basis
|
||||||
|
|
|
@ -453,8 +453,8 @@ func (r *HelmRepositoryReconciler) reconcileArtifact(ctx context.Context, obj *s
|
||||||
size := units.HumanSize(float64(fi.Size()))
|
size := units.HumanSize(float64(fi.Size()))
|
||||||
|
|
||||||
r.AnnotatedEventf(obj, map[string]string{
|
r.AnnotatedEventf(obj, map[string]string{
|
||||||
"revision": artifact.Revision,
|
sourcev1.GroupVersion.Group + "/revision": artifact.Revision,
|
||||||
"checksum": artifact.Checksum,
|
sourcev1.GroupVersion.Group + "/checksum": artifact.Checksum,
|
||||||
}, corev1.EventTypeNormal, "NewArtifact", "fetched index of size %s from '%s'", size, chartRepo.URL)
|
}, corev1.EventTypeNormal, "NewArtifact", "fetched index of size %s from '%s'", size, chartRepo.URL)
|
||||||
|
|
||||||
// Record it on the object.
|
// Record it on the object.
|
||||||
|
|
Loading…
Reference in New Issue