Skip to content

Event Handling has to be updated after breaking change in controller-runtime #1489

Closed

Description

@friegger

Describe the bug
Release v0.4.0 updated controller-runtime to v0.23.x which brings a breaking change:

Currently we see errors like this from controllers in the machine poollet:

1 event_broadcaster.go:270] "Server rejected event (will not retry!)" err="events.events.k8s.io \"webapp.18bba95a36d521da\" is forbidden: User \"system:serviceaccount:libvirt-provider:libvirt-provider-controller-manager\" cannot patch resource \"events\" in API group \"events.k8s.io\" in the namespace \"default\"" event="&Event{...}"

The events.k8s.io apiGroup also make the action field required. Events where the field is not set are rejected:

E0629 11:14:07.923183       1 event_broadcaster.go:270] "Server rejected event (will not retry!)" err="Event \"webapp.18bba95a36d521da\" is invalid: action: Required value" event="&Event{...}"

This part requires changes in the code.

To Reproduce
Use ironcore-in-a-box and create a machine. Check the logs of the libvirt-provider pod.

Expected behavior
No such error logs.

ToDos

Activity

  1. added theissue type on Jun 24, 2026
  2. removed theissue type on Jun 24, 2026
  3. added theissue type on Jun 24, 2026
  4. moved this from Backlog to In progress in IaaSon Jun 24, 2026
  5. changed the title [-]RBAC for Events have to be updated after breaking change in controller-runtime[/-] [+]Event Handling has to be updated after breaking change in controller-runtime[/+] on Jul 3, 2026
  6. linked a pull request that will close this issueAdd action field to event recorder #62on Jul 3, 2026
  7. linked a pull request that will close this issueFix empty action field on IRI-mapped events #1500on Jul 3, 2026
  8. self-assigned this
    on Jul 3, 2026
  9. lukasfrank commented on Jul 3, 2026

    @lukasfrank
    Member

    ceph-provider also needs to be fixed, if provider-utils introduces an interface change

  10. moved this from In progress to Done in IaaSon Jul 6, 2026
  11. moved this from Done to In progress in IaaSon Jul 6, 2026
  12. linked a pull request that will close this issueProperly convert action field to IRI event #744on Jul 13, 2026
  13. moved this from In progress to Done in IaaSon Jul 15, 2026
  14. added
    area/iaasIssues related to IronCore IaaS development.
    on Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/iaasIssues related to IronCore IaaS development.bugSomething isn't working

Type

Projects

  • Status
    Done
  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions