mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-17 15:50:10 +00:00
Added flag to skip zone check
This commit is contained in:
parent
7de5e87135
commit
7e4af9a66b
@ -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) {
|
|||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user