Skip to content

Adopt k8s event/v1 API with semantic actions#343

Draft
adri1197 wants to merge 1 commit into
fluxcd:mainfrom
adri1197:event-recorder
Draft

Adopt k8s event/v1 API with semantic actions#343
adri1197 wants to merge 1 commit into
fluxcd:mainfrom
adri1197:event-recorder

Conversation

@adri1197

Copy link
Copy Markdown

Migrates the controller's event recording from the legacy k8s.io/client-go/tools/record interface to github.com/fluxcd/pkg/runtime/events, which emits structured events.k8s.io/v1 Events.

  • Replace kuberecorder.EventRecorder with gotkevents.EventRecorder throughout the reconciler
  • Use structured event fields: Action (Reconciled, Failed, Waiting) and the v1 Eventf signature with Related object support
  • Migrate from github.com/fluxcd/pkg/apis/event/v1beta1 to github.com/fluxcd/pkg/apis/event/v1
  • Update test assertions to use eventsv1.Event fields (Note, Action, Regarding) instead of corev1.Event.Message

Closes fluxcd/flux2#5761

Migrate from event/v1beta1 to event/v1 and replace the
kuberecorder.EventRecorder with gotkevents.EventRecorder
to support the richer event format including RelatedObject
and Action fields.

Signed-off-by: Adrian Fernandez De La Torre <adri1197@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Kubernetes Event API v1

1 participant