Skip to content

Conversation

@aaroniscode
Copy link
Contributor

Issue #, if available: n/a

Description of changes:
set the eventRecorder when creating a new GatewayReconciler to avoid panic when trying to create an event

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@liwenwu-amazon
Copy link
Contributor

Can you add issue and include the crash stacktrace to the issue first? thanks

@aaroniscode
Copy link
Contributor Author

I can recreate the panic ... but I think if you look at the code you can easily spot that the eventRecorder is being initialized as nil and will panic when an event is recorded. Let me know if you still want me to reproduce the panic.

@liwenwu-amazon
Copy link
Contributor

If you can recreate the crash, please add crash stacktrace. thanks

Copy link
Contributor

@liwenwu-amazon liwenwu-amazon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. thanks, Also, please add crash stack trace when you have it.

@liwenwu-amazon liwenwu-amazon merged commit 24eeada into aws:main Mar 9, 2023
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.

2 participants