File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,9 @@ package elbv2
2
2
3
3
import (
4
4
"context"
5
+ "strings"
6
+
5
7
awssdk "github.com/aws/aws-sdk-go/aws"
6
- "github.com/aws/aws-sdk-go/aws/session"
7
8
elbv2sdk "github.com/aws/aws-sdk-go/service/elbv2"
8
9
"github.com/go-logr/logr"
9
10
"github.com/pkg/errors"
@@ -12,7 +13,6 @@ import (
12
13
"sigs.k8s.io/aws-load-balancer-controller/pkg/deploy/tracking"
13
14
"sigs.k8s.io/aws-load-balancer-controller/pkg/model/core"
14
15
elbv2model "sigs.k8s.io/aws-load-balancer-controller/pkg/model/elbv2"
15
- "strings"
16
16
)
17
17
18
18
const (
@@ -89,7 +89,6 @@ func (s *loadBalancerSynthesizer) Synthesize(ctx context.Context) error {
89
89
}
90
90
91
91
func (s * loadBalancerSynthesizer ) disableDeletionProtection (lb * elbv2sdk.LoadBalancer ) error {
92
- svc := elbv2sdk .New (session .Must (session .NewSession ()))
93
92
input := & elbv2sdk.ModifyLoadBalancerAttributesInput {
94
93
Attributes : []* elbv2sdk.LoadBalancerAttribute {
95
94
{
@@ -99,7 +98,7 @@ func (s *loadBalancerSynthesizer) disableDeletionProtection(lb *elbv2sdk.LoadBal
99
98
},
100
99
LoadBalancerArn : lb .LoadBalancerArn ,
101
100
}
102
- _ , err := svc .ModifyLoadBalancerAttributes (input )
101
+ _ , err := s . elbv2Client .ModifyLoadBalancerAttributes (input )
103
102
return err
104
103
}
105
104
You can’t perform that action at this time.
0 commit comments