mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
Remove private struct field. It is only used at construction.
This commit is contained in:
parent
ac6122c562
commit
326dd7c1c0
@ -172,7 +172,6 @@ type InstanceGroupInfo interface {
|
|||||||
|
|
||||||
// AWSCloud is an implementation of Interface, TCPLoadBalancer and Instances for Amazon Web Services.
|
// AWSCloud is an implementation of Interface, TCPLoadBalancer and Instances for Amazon Web Services.
|
||||||
type AWSCloud struct {
|
type AWSCloud struct {
|
||||||
awsServices AWSServices
|
|
||||||
ec2 EC2
|
ec2 EC2
|
||||||
elb ELB
|
elb ELB
|
||||||
asg ASG
|
asg ASG
|
||||||
@ -544,7 +543,6 @@ func newAWSCloud(config io.Reader, awsServices AWSServices) (*AWSCloud, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
awsCloud := &AWSCloud{
|
awsCloud := &AWSCloud{
|
||||||
awsServices: awsServices,
|
|
||||||
ec2: ec2,
|
ec2: ec2,
|
||||||
elb: elb,
|
elb: elb,
|
||||||
asg: asg,
|
asg: asg,
|
||||||
|
@ -474,7 +474,6 @@ func (a *FakeASG) DescribeAutoScalingGroups(*autoscaling.DescribeAutoScalingGrou
|
|||||||
func mockInstancesResp(instances []*ec2.Instance) *AWSCloud {
|
func mockInstancesResp(instances []*ec2.Instance) *AWSCloud {
|
||||||
awsServices := NewFakeAWSServices().withInstances(instances)
|
awsServices := NewFakeAWSServices().withInstances(instances)
|
||||||
return &AWSCloud{
|
return &AWSCloud{
|
||||||
awsServices: awsServices,
|
|
||||||
ec2: awsServices.ec2,
|
ec2: awsServices.ec2,
|
||||||
availabilityZone: awsServices.availabilityZone,
|
availabilityZone: awsServices.availabilityZone,
|
||||||
}
|
}
|
||||||
@ -483,7 +482,6 @@ func mockInstancesResp(instances []*ec2.Instance) *AWSCloud {
|
|||||||
func mockAvailabilityZone(region string, availabilityZone string) *AWSCloud {
|
func mockAvailabilityZone(region string, availabilityZone string) *AWSCloud {
|
||||||
awsServices := NewFakeAWSServices().withAz(availabilityZone)
|
awsServices := NewFakeAWSServices().withAz(availabilityZone)
|
||||||
return &AWSCloud{
|
return &AWSCloud{
|
||||||
awsServices: awsServices,
|
|
||||||
ec2: awsServices.ec2,
|
ec2: awsServices.ec2,
|
||||||
availabilityZone: awsServices.availabilityZone,
|
availabilityZone: awsServices.availabilityZone,
|
||||||
region: region,
|
region: region,
|
||||||
|
Loading…
Reference in New Issue
Block a user