Skip to content

Commit

Permalink
Merge pull request #4148 from leeeboo/master
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue.

Add support for cn-northwest-1.

Add support for cn-northwest-1.
But I am not sure whether the packages under /vender/ are all supported.
  • Loading branch information
Kubernetes Submit Queue authored Dec 27, 2017
2 parents 241d5d0 + c52472c commit e324eb7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/model/iam.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ func (b *IAMModelBuilder) buildAWSIAMRolePolicy() (fi.Resource, error) {
switch b.Region {
case "cn-north-1":
return "ec2.amazonaws.com.cn"
case "cn-northwest-1":
return "ec2.amazonaws.com.cn"
default:
return "ec2.amazonaws.com"
}
Expand Down
2 changes: 2 additions & 0 deletions pkg/model/iam/iam_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ func (b *PolicyBuilder) IAMPrefix() string {
switch b.Region {
case "cn-north-1":
return "arn:aws-cn"
case "cn-northwest-1":
return "arn:aws-cn"
case "us-gov-west-1":
return "arn:aws-us-gov"
default:
Expand Down
3 changes: 3 additions & 0 deletions upup/pkg/fi/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ var zonesToCloud = map[string]kops.CloudProviderID{
"cn-north-1a": kops.CloudProviderAWS,
"cn-north-1b": kops.CloudProviderAWS,

"cn-northwest-1a": kops.CloudProviderAWS,
"cn-northwest-1b": kops.CloudProviderAWS,

"us-gov-west-1a": kops.CloudProviderAWS,
"us-gov-west-1b": kops.CloudProviderAWS,

Expand Down

0 comments on commit e324eb7

Please sign in to comment.