Repository navigation
Conversation
The initializingworkspaces provider discarded the event recorder (_ recorder.EventRecorderGetter) and NewScopedInitializingCluster did not set the eventRecorderGetter field, leaving it nil. Any subsequent GetEventRecorderFor/GetEventRecorder call dereferences the nil getter and panics, which crashes the init-agent reconciler (kcp-dev/init-agent#25). Pass the recorder through and set the field, mirroring NewScopedCluster. Signed-off-by: Nikita Aboltin <aboltin.nikita@rwb.ru>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @2mind. Thanks for your PR. I'm waiting for a kcp-dev member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/kind bug |
|
@embik done — the description follows the template now and includes a release note. |
|
Friendly ping — the PR description was fixed per @embik's request on Sep 24, still awaiting review. Context: we run a patched init-agent build downstream (this fix + kcp-dev/init-agent#34) and would like to return to the upstream image once both land. |
Summary
The
initializingworkspacesprovider discarded the event recorder(
_ recorder.EventRecorderGetter) andNewScopedInitializingClusternever setthe
eventRecorderGetterfield, leaving it nil. Any subsequentGetEventRecorderFor/GetEventRecordercall dereferences the nil getter andpanics, crashing the kcp init-agent reconciler on every workspace reconcile.
The workspace then stays
Initializingindefinitely (the InitTemplate is neverapplied) — a functional blocker, not just noisy logs.
Pass the recorder through
initializingworkspacesand set the field inNewScopedInitializingCluster, mirroringNewScopedCluster.What Type of PR Is This?
/kind bug
/kind api-change
Related Issue(s)
Fixes kcp-dev/init-agent#25
Release Notes