Skip to content

Commit

Permalink
Merge pull request #42512 from kubermatic/scheeles-aws
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue (batch tested with PRs 43925, 42512)

AWS: add KubernetesClusterID as additional option when VPC is set

This is a small enhancement after the PRs kubernetes/kubernetes#41695 and  kubernetes/kubernetes#39996
## Release Notes
```release-note
AWS cloud provider: allow to set KubernetesClusterID or KubernetesClusterTag in combination with VPC.
```
  • Loading branch information
Kubernetes Submit Queue committed Apr 3, 2017
2 parents fc60af3 + e5432c7 commit 8d4395a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ func newAWSCloud(config io.Reader, awsServices Services) (*Cloud, error) {
deviceAllocators: make(map[types.NodeName]DeviceAllocator),
}

if cfg.Global.VPC != "" && cfg.Global.KubernetesClusterTag != "" {
if cfg.Global.VPC != "" && (cfg.Global.KubernetesClusterTag != "" || cfg.Global.KubernetesClusterID != "") {
// When the master is running on a different AWS account, cloud provider or on-premise
// build up a dummy instance and use the VPC from the nodes account
glog.Info("Master is configured to run on a AWS account, different cloud provider or on-premise")
Expand Down

0 comments on commit 8d4395a

Please sign in to comment.