Skip to content

Commit

Permalink
fix: gcp rds 默认不使用vpc网络
Browse files Browse the repository at this point in the history
  • Loading branch information
Qu Xuan committed May 11, 2020
1 parent 1403fae commit 8cfbf9a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/multicloud/google/dbinstance.go
Expand Up @@ -541,10 +541,6 @@ func (region *SRegion) CreateRds(name, databaseVersion, category, instanceType,
"value": "0.0.0.0/0",
},
}
if len(vpcId) > 0 {
vpcId = strings.TrimPrefix(vpcId, region.GetGlobalId()+"/")
ipConfiguration["privateNetwork"] = vpcId
}
settings["ipConfiguration"] = ipConfiguration
body := map[string]interface{}{
"databaseVersion": databaseVersion,
Expand Down

0 comments on commit 8cfbf9a

Please sign in to comment.