diff --git a/pkg/cloudprovider/providers/aws/aws_utils.go b/pkg/cloudprovider/providers/aws/aws_utils.go index 310b4898eca91..0067ded7f08b8 100644 --- a/pkg/cloudprovider/providers/aws/aws_utils.go +++ b/pkg/cloudprovider/providers/aws/aws_utils.go @@ -25,7 +25,7 @@ func stringSetToPointers(in sets.String) []*string { if in == nil { return nil } - out := make([]*string, len(in)) + out := make([]*string, 0, len(in)) for k := range in { out = append(out, aws.String(k)) }