Skip to content

Commit

Permalink
Fix security group auto-discovery filter (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonsukhanov authored Jul 2, 2023
1 parent c46cb14 commit 25d3961
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions aws/ec2.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,25 +283,13 @@ func findSecurityGroupWithClusterID(svc ec2iface.EC2API, clusterID string, contr
params := &ec2.DescribeSecurityGroupsInput{
Filters: []*ec2.Filter{
{
Name: aws.String("tag-key"),
Values: []*string{
aws.String(clusterIDTagPrefix + clusterID),
},
},
{
Name: aws.String("tag-value"),
Name: aws.String("tag:" + clusterIDTagPrefix + clusterID),
Values: []*string{
aws.String(resourceLifecycleOwned),
},
},
{
Name: aws.String("tag-key"),
Values: []*string{
aws.String(kubernetesCreatorTag),
},
},
{
Name: aws.String("tag-value"),
Name: aws.String("tag:" + kubernetesCreatorTag),
Values: []*string{
aws.String(controllerID),
},
Expand Down

0 comments on commit 25d3961

Please sign in to comment.