-
Notifications
You must be signed in to change notification settings - Fork 53
Fix critical error in flowlogs pkg #156
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
Conversation
https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/ec2#DescribeFlowLogsOutput FlowLogID is not a field defined in DescribeFlowlogsOutput. Need to go inside the resp.FlowLog[] to get the FlowLogID. This is causing a crash any time FlowLog resource is created
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mattzech The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @mattzech. Thanks for your PR. I'm waiting for a aws-controllers-k8s 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. Instructions 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/test-infra repository. |
I realize my code may not be exactly right, I am just basing this off my knowledge of the sdk. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mattzech - thanks for the PR! I just checked CreateFlowLogsOutput
struct - and it looks like it doesn't have a FlowLogs
field.
@mattzech I just realized that you are pointing to an sdk v2 link, while in ACK we are using the v1 |
@a-hilaly Ah, that would make sense as to why I did not see it. Thank you for the response. Did you get a chance to look at the issue I referenced? Any basic FlowLogs resource creation panics and points to this line in the code |
Taking a look now! |
Issues go stale after 180d of inactivity. |
Stale issues rot after 60d of inactivity. |
Issue #, if available: 1931
Description of changes:
https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/ec2#DescribeFlowLogsOutput
FlowLogID is not a field defined in DescribeFlowlogsOutput. Need to go inside the resp.FlowLog[] to get the FlowLogID. This is causing a crash any time FlowLog resource is created because it is always going to return index out of bounds.