Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
fix go lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Berk Dehrioglu committed Nov 21, 2023
1 parent 61d8bc5 commit 35a784a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/registrar/transitgateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
type contextKey string

var clusterNameContextKey contextKey = "clusterName"
var tagKey = "tag:"

const (
// PREFIX_LIST_MAX_ENTRIES is the maximum number of entries a created prefix list can have.
Expand Down Expand Up @@ -735,9 +736,9 @@ func (r *TransitGateway) getTGWGAttachmentSubnetsOrDefault(ctx context.Context,
result := make([]string, 0)
output, err := transitGatewayClient.DescribeSubnets(ctx, &ec2.DescribeSubnetsInput{
Filters: []types.Filter{
{Name: awssdk.String("tag:" + capa.NameKubernetesAWSCloudProviderPrefix + awsCluster.Name), Values: []string{"owned", "shared"}},
{Name: awssdk.String("tag:" + SubnetTGWAttachementsLabel), Values: []string{"true"}},
{Name: awssdk.String("tag:" + SubnetRoleLabel), Values: []string{"private"}},
{Name: awssdk.String(tagKey + capa.NameKubernetesAWSCloudProviderPrefix + awsCluster.Name), Values: []string{"owned", "shared"}},
{Name: awssdk.String(tagKey + SubnetTGWAttachementsLabel), Values: []string{"true"}},
{Name: awssdk.String(tagKey + SubnetRoleLabel), Values: []string{"private"}},
},
})
if err != nil {
Expand Down

0 comments on commit 35a784a

Please sign in to comment.