Skip to content

Commit

Permalink
Don't tag shared VPCs
Browse files Browse the repository at this point in the history
Fix #4265
  • Loading branch information
justinsb committed Mar 18, 2018
1 parent 98ba08f commit 3e890a8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/model/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,17 @@ func (b *NetworkModelBuilder) Build(c *fi.ModelBuilderContext) error {

// VPC that holds everything for the cluster
{

vpcTags := tags
if sharedVPC {
// We don't tag a shared VPC - we can identify it by its ID anyway. Issue #4265
vpcTags = make(map[string]string)
}
t := &awstasks.VPC{
Name: s(vpcName),
Lifecycle: b.Lifecycle,
Shared: fi.Bool(sharedVPC),
EnableDNSSupport: fi.Bool(true),
Tags: tags,
Tags: vpcTags,
}

if sharedVPC && b.IsKubernetesGTE("1.5") {
Expand Down

0 comments on commit 3e890a8

Please sign in to comment.