Skip to content

Commit

Permalink
gofmt/govet cleanup (openshift#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
detiber authored and k8s-ci-robot committed Oct 5, 2018
1 parent 6552b10 commit 2a5259c
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions cloud/aws/providerconfig/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ var (
type ClassicELB struct {
// The name of the load balancer. It must be unique within the set of load balancers
// defined in the region. It also serves as identifier.
Name string `json:"name`
Name string `json:"name"`

// DNSName is the dns name of the load balancer.
DNSName string `json:"dnsName"`
Expand Down Expand Up @@ -276,7 +276,7 @@ type ClassicELBListener struct {
type ClassicELBHealthCheck struct {
Target string `json:"target"`
Interval time.Duration `json:"interval"`
Timeout time.Duration `json:"interval"`
Timeout time.Duration `json:"timeout"`
HealthyThreshold int64 `json:"healthyThreshold"`
UnhealthyThreshold int64 `json:"unhealthyThreshold"`
}
Expand Down
2 changes: 1 addition & 1 deletion cloud/aws/services/ec2/bastion.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (s *Service) describeBastionInstance(clusterName string, status *v1alpha1.A

input := &ec2.DescribeInstancesInput{
Filters: []*ec2.Filter{
&ec2.Filter{
{
Name: aws.String(fmt.Sprintf("tag:%s", TagNameAWSClusterAPIRole)),
Values: []*string{aws.String(TagValueBastionRole)},
},
Expand Down
8 changes: 4 additions & 4 deletions cloud/aws/services/ec2/instances_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func TestInstanceIfExists(t *testing.T) {
Reservations: []*ec2.Reservation{
{
Instances: []*ec2.Instance{
&ec2.Instance{
{
InstanceId: aws.String("id-1"),
InstanceType: aws.String("m5.large"),
SubnetId: aws.String("subnet-1"),
Expand Down Expand Up @@ -217,10 +217,10 @@ func TestCreateInstance(t *testing.T) {
},
},
SecurityGroups: map[v1alpha1.SecurityGroupRole]*v1alpha1.SecurityGroup{
v1alpha1.SecurityGroupControlPlane: &v1alpha1.SecurityGroup{
v1alpha1.SecurityGroupControlPlane: {
ID: "1",
},
v1alpha1.SecurityGroupNode: &v1alpha1.SecurityGroup{
v1alpha1.SecurityGroupNode: {
ID: "2",
},
},
Expand All @@ -238,7 +238,7 @@ func TestCreateInstance(t *testing.T) {
}).
Return(&ec2.Reservation{
Instances: []*ec2.Instance{
&ec2.Instance{
{
State: &ec2.InstanceState{
Name: aws.String(ec2.InstanceStateNamePending),
},
Expand Down
4 changes: 2 additions & 2 deletions cloud/aws/services/ec2/natgateways_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func TestReconcileNatGateways(t *testing.T) {
}),
gomock.Any()).Do(func(_, y interface{}) {
funct := y.(func(page *ec2.DescribeNatGatewaysOutput, lastPage bool) bool)
funct(&ec2.DescribeNatGatewaysOutput{NatGateways: []*ec2.NatGateway{&ec2.NatGateway{
funct(&ec2.DescribeNatGatewaysOutput{NatGateways: []*ec2.NatGateway{{
NatGatewayId: aws.String("gateway"),
SubnetId: aws.String("subnet-1"),
}}}, true)
Expand Down Expand Up @@ -261,7 +261,7 @@ func TestReconcileNatGateways(t *testing.T) {
}),
gomock.Any()).Do(func(_, y interface{}) {
funct := y.(func(page *ec2.DescribeNatGatewaysOutput, lastPage bool) bool)
funct(&ec2.DescribeNatGatewaysOutput{NatGateways: []*ec2.NatGateway{&ec2.NatGateway{
funct(&ec2.DescribeNatGatewaysOutput{NatGateways: []*ec2.NatGateway{{
NatGatewayId: aws.String("gateway"),
SubnetId: aws.String("subnet-1"),
}}}, true)
Expand Down
2 changes: 1 addition & 1 deletion cloud/aws/services/ec2/subnets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func TestReconcileSubnets(t *testing.T) {
})).
Return(&ec2.DescribeSubnetsOutput{
Subnets: []*ec2.Subnet{
&ec2.Subnet{
{
VpcId: aws.String(subnetsVPCID),
SubnetId: aws.String("subnet-1"),
AvailabilityZone: aws.String("us-east-1a"),
Expand Down
2 changes: 1 addition & 1 deletion cloud/aws/services/ec2/vpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func TestReconcileVPC(t *testing.T) {
})).
Return(&ec2.DescribeVpcsOutput{
Vpcs: []*ec2.Vpc{
&ec2.Vpc{
{
VpcId: aws.String("vpc-exists"),
CidrBlock: aws.String("10.0.0.0/8"),
},
Expand Down
2 changes: 1 addition & 1 deletion cloud/aws/services/elb/loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (s *Service) getAPIServerClassicELBSpec(clusterName string, network *v1alph
Name: fmt.Sprintf("%s-apiserver", clusterName),
Scheme: v1alpha1.ClassicELBSchemeInternetFacing,
Listeners: []*v1alpha1.ClassicELBListener{
&v1alpha1.ClassicELBListener{
{
Protocol: v1alpha1.ClassicELBProtocolTCP,
Port: 6443,
InstanceProtocol: v1alpha1.ClassicELBProtocolTCP,
Expand Down

0 comments on commit 2a5259c

Please sign in to comment.