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
7e4af9a6
Unverified
Commit
7e4af9a6
authored
Jul 02, 2016
by
Kenneth D. Evensen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added flag to skip zone check
parent
7de5e871
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
aws.go
pkg/cloudprovider/providers/aws/aws.go
+9
-3
No files found.
pkg/cloudprovider/providers/aws/aws.go
View file @
7e4af9a6
...
@@ -300,6 +300,8 @@ type CloudConfig struct {
...
@@ -300,6 +300,8 @@ type CloudConfig struct {
//has setup a rule that allows inbound traffic on kubelet ports from the
//has setup a rule that allows inbound traffic on kubelet ports from the
//local VPC subnet (so load balancers can access it). E.g. 10.82.0.0/16 30000-32000.
//local VPC subnet (so load balancers can access it). E.g. 10.82.0.0/16 30000-32000.
DisableSecurityGroupIngress
bool
DisableSecurityGroupIngress
bool
DisableStrictZoneCheck
bool
}
}
}
}
...
@@ -664,9 +666,13 @@ func newAWSCloud(config io.Reader, awsServices Services) (*Cloud, error) {
...
@@ -664,9 +666,13 @@ func newAWSCloud(config io.Reader, awsServices Services) (*Cloud, error) {
return
nil
,
err
return
nil
,
err
}
}
valid
:=
isRegionValid
(
regionName
)
if
!
cfg
.
Global
.
DisableStrictZoneCheck
{
if
!
valid
{
valid
:=
isRegionValid
(
regionName
)
return
nil
,
fmt
.
Errorf
(
"not a valid AWS zone (unknown region): %s"
,
zone
)
if
!
valid
{
return
nil
,
fmt
.
Errorf
(
"not a valid AWS zone (unknown region): %s"
,
zone
)
}
}
else
{
glog
.
Warningf
(
"Strict AWS zone checking is disabled. Proceeding with zone: %s"
,
zone
)
}
}
ec2
,
err
:=
awsServices
.
Compute
(
regionName
)
ec2
,
err
:=
awsServices
.
Compute
(
regionName
)
...
...
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