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

Filter only kops ec2 resource with type ec2.ResourceTypeSubnet #1752

Merged
merged 5 commits into from
May 12, 2020

Conversation

rimaulana
Copy link
Contributor

@rimaulana rimaulana commented Jan 24, 2020

Description

Changes to ensure that only resource with type ec2.ResourceTypeSubnet
returned by ListSubnets get further processed

When subnets carries AssociatedElasticIp or AssociatedNatgateway tag,
ListSubnets function doesn't always return resources with
ec2.ResourceTypeSubnet type

These resources doesn’t have Obj property causing type conversion from
nil into *ec2.Subnet to panic

Issue #1410

Description

Checklist

  • Added tests that cover your change (if possible)
  • Added/modified documentation as required (such as the README.md, and examples directory)
  • Manually tested
  • Added labels for change area (e.g. area/nodegroup) and target version (e.g. version/0.12.0)
  • Added note in docs/release_notes/draft.md (or relevant release note)

Changes to ensure that only resource with type ec2.ResourceTypeSubnet
returns by ListSubnets get further processed

When subnets carries AssociatedElasticIp or AssociatedNatgateway tag,
ListSubnets function doesn't always return resources with
ec2.ResourceTypeSubnet type

These resources doesn’t have Obj property causing type conversion from
nil into *ec2.Subnet to panic

Issue eksctl-io#1410
@errordeveloper errordeveloper removed their request for review February 6, 2020 14:35
@martina-if
Copy link
Contributor

Hi @rimaulana sorry that it took so long to get to this PR and thank you for contributing to eksctl!

I think it looks good. Can you add in a comment some logs of when you manually tested this?

Also, if you can rebase this we can merge it :)

@martina-if martina-if self-assigned this May 11, 2020
@martina-if martina-if merged commit 9ba4485 into eksctl-io:master May 12, 2020
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.

3 participants