Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event: Move event recording in ValidatingWebhook to controller #1844

Open
devholic opened this issue Apr 15, 2024 · 3 comments
Open

Event: Move event recording in ValidatingWebhook to controller #1844

devholic opened this issue Apr 15, 2024 · 3 comments

Comments

@devholic
Copy link
Member

Background

As @hiddeco pointed out, recording Events on ValidatingWebhook doesn't guarantee that the given event is really happened or not because other ValidatingWebhook in cluster can affect the result of validation.

Proposal

Instead of recording events in ValidatingWebhook,

  1. MutatingWebhook annotates event payload to target resources
  2. Controller records event in initial phase of reconciliation loop if payload presents in annotation and clear from annotations

References

@krancour
Copy link
Member

Agreed.

@krancour
Copy link
Member

@devholic I'll leave it up to you whether this needs to be changed in the v0.6.0 timeline or if the current behavior is acceptable for now, making this lower priority. Your call.

@devholic
Copy link
Member Author

@krancour Focusing on event tracking itself has higher priority for v0.6.0, so I think we can do this after v0.6.0 is released.

@devholic devholic added this to the v0.7.0 milestone Apr 16, 2024
devholic added a commit that referenced this issue May 14, 2024
Part of #1844

Signed-off-by: Sunghoon Kang <hoon@akuity.io>
devholic added a commit that referenced this issue May 14, 2024
Fixes #1844

Signed-off-by: Sunghoon Kang <hoon@akuity.io>
@krancour krancour removed this from the v0.7.0 milestone May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants