Conversation
f54cb01 to
b3a664e
Compare
|
Hey @adri1197 please rebase all your PRs, we have upgraded to k8s 1.37 across all controllers and bumped most fluxcd/pkg packages. The only remaining dep for you to bump across your PRs is fluxcd/pkg/runtime. Please start with kustomize-controller as there's another PR depending on the runtime bump 🙏 |
b3a664e to
5d3f654
Compare
matheuscscp
left a comment
There was a problem hiding this comment.
LGTM! 🚀
Thanks @adri1197!
This is not true, deduplication will never happen now because |
| "revision", obj.Status.LastAttemptedRevision, | ||
| "duration", time.Since(reconcileStart).String()) | ||
| r.event(obj, obj.Status.LastAppliedRevision, obj.Status.LastAppliedOriginRevision, eventv1.EventSeverityInfo, msg, | ||
| r.event(obj, nil, obj.Status.LastAppliedRevision, obj.Status.LastAppliedOriginRevision, eventv1.EventSeverityInfo, |
There was a problem hiding this comment.
Why we do not set the source on a success reconcile event?
|
We will do what's described here now: #1742 (comment) Please rebase after that! 🙏 |
|
@adri1197 All done, please rebase! 🙏 |
dcd41bb to
34ff9e9
Compare
matheuscscp
left a comment
There was a problem hiding this comment.
LGTM! 🚀
Thanks @adri1197!
- Replace kuberecorder.EventRecorder with events.Recorder to support structured event metadata including source object and action type - Upgrade event API from event/v1beta1 to event/v1 - Add action parameter (Reconciled, Failed, Waiting, Applied, Deleted, Progressing) to all event calls for richer event semantics - Pass source reference through reconcile, apply, prune, checkHealth, and finalize methods - Update tests to use events.Recorder Signed-off-by: Adrian Fernandez De La Torre <adri1197@gmail.com>
34ff9e9 to
92400d2
Compare
|
Found some major blockers:
|
|
Given the 1024 limit of the event message, we can not ship this as is, all of Flux observability is built on the assumption that the events cary the desired state changes and errors. With 1024 limit, KC can no longer issue events with the list of applied changes, dry-run errors will no longer be surfaced to users, HC can no longer report helm upgrade errors, etc. |
Migrate the controller's event recorder to
fluxcd/pkg/runtime/events.Recorderand K8s event API fromv1beta1tov1.kuberecorder.EventRecorderwithevents.Recorderto support structured event metadata (source object reference and action type).Reconciled,Failed,Waiting,Applied,Deleted,Progressing) and thread the source reference throughreconcile,apply,prune,checkHealth, andfinalize.fluxcd/pkg/runtimeto v0.113.0.Part of - fluxcd/flux2#5761