Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
f8e6098e
Commit
f8e6098e
authored
Feb 29, 2016
by
Justin Santa Barbara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AWS: Update tests for refactoring
parent
af9efa02
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
aws.go
pkg/cloudprovider/providers/aws/aws.go
+7
-3
aws_test.go
pkg/cloudprovider/providers/aws/aws_test.go
+0
-0
No files found.
pkg/cloudprovider/providers/aws/aws.go
View file @
f8e6098e
...
...
@@ -928,12 +928,16 @@ type awsInstance struct {
}
// newAWSInstance creates a new awsInstance object
func
newAWSInstance
(
ec2
EC2
,
instance
*
ec2
.
Instance
)
*
awsInstance
{
func
newAWSInstance
(
ec2Service
EC2
,
instance
*
ec2
.
Instance
)
*
awsInstance
{
az
:=
""
if
instance
.
Placement
!=
nil
{
az
=
aws
.
StringValue
(
instance
.
Placement
.
AvailabilityZone
)
}
self
:=
&
awsInstance
{
ec2
:
ec2
,
ec2
:
ec2
Service
,
awsID
:
aws
.
StringValue
(
instance
.
InstanceId
),
nodeName
:
aws
.
StringValue
(
instance
.
PrivateDnsName
),
availabilityZone
:
a
ws
.
StringValue
(
instance
.
Placement
.
AvailabilityZone
)
,
availabilityZone
:
a
z
,
instanceType
:
aws
.
StringValue
(
instance
.
InstanceType
),
vpcID
:
aws
.
StringValue
(
instance
.
VpcId
),
subnetID
:
aws
.
StringValue
(
instance
.
SubnetId
),
...
...
pkg/cloudprovider/providers/aws/aws_test.go
View file @
f8e6098e
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment