Skip to content

Commit 2a5259c

Browse files
detiberk8s-ci-robot
authored andcommitted
gofmt/govet cleanup (openshift#167)
1 parent 6552b10 commit 2a5259c

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

cloud/aws/providerconfig/v1alpha1/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ var (
240240
type ClassicELB struct {
241241
// The name of the load balancer. It must be unique within the set of load balancers
242242
// defined in the region. It also serves as identifier.
243-
Name string `json:"name`
243+
Name string `json:"name"`
244244

245245
// DNSName is the dns name of the load balancer.
246246
DNSName string `json:"dnsName"`
@@ -276,7 +276,7 @@ type ClassicELBListener struct {
276276
type ClassicELBHealthCheck struct {
277277
Target string `json:"target"`
278278
Interval time.Duration `json:"interval"`
279-
Timeout time.Duration `json:"interval"`
279+
Timeout time.Duration `json:"timeout"`
280280
HealthyThreshold int64 `json:"healthyThreshold"`
281281
UnhealthyThreshold int64 `json:"unhealthyThreshold"`
282282
}

cloud/aws/services/ec2/bastion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (s *Service) describeBastionInstance(clusterName string, status *v1alpha1.A
8787

8888
input := &ec2.DescribeInstancesInput{
8989
Filters: []*ec2.Filter{
90-
&ec2.Filter{
90+
{
9191
Name: aws.String(fmt.Sprintf("tag:%s", TagNameAWSClusterAPIRole)),
9292
Values: []*string{aws.String(TagValueBastionRole)},
9393
},

cloud/aws/services/ec2/instances_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func TestInstanceIfExists(t *testing.T) {
7070
Reservations: []*ec2.Reservation{
7171
{
7272
Instances: []*ec2.Instance{
73-
&ec2.Instance{
73+
{
7474
InstanceId: aws.String("id-1"),
7575
InstanceType: aws.String("m5.large"),
7676
SubnetId: aws.String("subnet-1"),
@@ -217,10 +217,10 @@ func TestCreateInstance(t *testing.T) {
217217
},
218218
},
219219
SecurityGroups: map[v1alpha1.SecurityGroupRole]*v1alpha1.SecurityGroup{
220-
v1alpha1.SecurityGroupControlPlane: &v1alpha1.SecurityGroup{
220+
v1alpha1.SecurityGroupControlPlane: {
221221
ID: "1",
222222
},
223-
v1alpha1.SecurityGroupNode: &v1alpha1.SecurityGroup{
223+
v1alpha1.SecurityGroupNode: {
224224
ID: "2",
225225
},
226226
},
@@ -238,7 +238,7 @@ func TestCreateInstance(t *testing.T) {
238238
}).
239239
Return(&ec2.Reservation{
240240
Instances: []*ec2.Instance{
241-
&ec2.Instance{
241+
{
242242
State: &ec2.InstanceState{
243243
Name: aws.String(ec2.InstanceStateNamePending),
244244
},

cloud/aws/services/ec2/natgateways_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func TestReconcileNatGateways(t *testing.T) {
185185
}),
186186
gomock.Any()).Do(func(_, y interface{}) {
187187
funct := y.(func(page *ec2.DescribeNatGatewaysOutput, lastPage bool) bool)
188-
funct(&ec2.DescribeNatGatewaysOutput{NatGateways: []*ec2.NatGateway{&ec2.NatGateway{
188+
funct(&ec2.DescribeNatGatewaysOutput{NatGateways: []*ec2.NatGateway{{
189189
NatGatewayId: aws.String("gateway"),
190190
SubnetId: aws.String("subnet-1"),
191191
}}}, true)
@@ -261,7 +261,7 @@ func TestReconcileNatGateways(t *testing.T) {
261261
}),
262262
gomock.Any()).Do(func(_, y interface{}) {
263263
funct := y.(func(page *ec2.DescribeNatGatewaysOutput, lastPage bool) bool)
264-
funct(&ec2.DescribeNatGatewaysOutput{NatGateways: []*ec2.NatGateway{&ec2.NatGateway{
264+
funct(&ec2.DescribeNatGatewaysOutput{NatGateways: []*ec2.NatGateway{{
265265
NatGatewayId: aws.String("gateway"),
266266
SubnetId: aws.String("subnet-1"),
267267
}}}, true)

cloud/aws/services/ec2/subnets_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func TestReconcileSubnets(t *testing.T) {
7676
})).
7777
Return(&ec2.DescribeSubnetsOutput{
7878
Subnets: []*ec2.Subnet{
79-
&ec2.Subnet{
79+
{
8080
VpcId: aws.String(subnetsVPCID),
8181
SubnetId: aws.String("subnet-1"),
8282
AvailabilityZone: aws.String("us-east-1a"),

cloud/aws/services/ec2/vpc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func TestReconcileVPC(t *testing.T) {
4747
})).
4848
Return(&ec2.DescribeVpcsOutput{
4949
Vpcs: []*ec2.Vpc{
50-
&ec2.Vpc{
50+
{
5151
VpcId: aws.String("vpc-exists"),
5252
CidrBlock: aws.String("10.0.0.0/8"),
5353
},

cloud/aws/services/elb/loadbalancer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func (s *Service) getAPIServerClassicELBSpec(clusterName string, network *v1alph
5757
Name: fmt.Sprintf("%s-apiserver", clusterName),
5858
Scheme: v1alpha1.ClassicELBSchemeInternetFacing,
5959
Listeners: []*v1alpha1.ClassicELBListener{
60-
&v1alpha1.ClassicELBListener{
60+
{
6161
Protocol: v1alpha1.ClassicELBProtocolTCP,
6262
Port: 6443,
6363
InstanceProtocol: v1alpha1.ClassicELBProtocolTCP,

0 commit comments

Comments
 (0)