You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The agent should, especially if a sync is unsucessful, issue an event on the source object in kcp to inform the user.
Ideally in a perfect world, the agent would also patch-in a new subresource, like "syncStatus", onto each CRD it turns into an APIResourceSchema. The agent could then use this new subresource to store additional information like conditions, which could then also be easily digested and used by a kcp UI.
Proposed Solution
Issue events or extend the schema as outlined above.
Alternative Solutions
No response
Want to contribute?
I would like to work on this issue.
Additional Context
No response
The text was updated successfully, but these errors were encountered:
The agent should, especially if a sync is unsucessful, issue an event on the source object in kcp to inform the user.
Actually, thinking more about this, I think this isn't true. The endusers have no influence over the syncing process and the events would be of little help to them. Additionally, events that contain error messages would leak details about the service cluster.
If anything, the event should be on the service cluster side, where the responsible entity can deal with it.
After talking with The Marvin, we have decided to try to issue events after all, but only if the syncagent encounters an "Invalid" error (i.e. HTTP 422 Unprocessable Entity).
However that's currently not possible because client-go's EventRecorder interface does not take a context, so it cannot switch workspaces based on the context, plus it does some internal batching. To fix that the batching would need to remember the workspace for each event. Alternatively we would need to manually create the event, circumventing the whole Broadcaster/EventRecorder logic in client-go.
Feature Description
The agent should, especially if a sync is unsucessful, issue an event on the source object in kcp to inform the user.
Ideally in a perfect world, the agent would also patch-in a new subresource, like "syncStatus", onto each CRD it turns into an APIResourceSchema. The agent could then use this new subresource to store additional information like conditions, which could then also be easily digested and used by a kcp UI.
Proposed Solution
Issue events or extend the schema as outlined above.
Alternative Solutions
No response
Want to contribute?
Additional Context
No response
The text was updated successfully, but these errors were encountered: