feat: allow all network properties to be globally set

Global settings are cool if managed in a standard way (ugh env vars) so we'll add them back for golang plugins as necessary.
This commit is contained in:
Jose Diaz-Gonzalez
2021-03-22 17:13:54 -04:00
parent 84907be0cd
commit 8d26d06f5e
5 changed files with 210 additions and 41 deletions

View File

@@ -17,7 +17,7 @@ import (
var (
// DefaultProperties is a map of all valid network properties with corresponding default property values
DefaultProperties = map[string]string{
"bind-all-interfaces": "false",
"bind-all-interfaces": "",
"attach-post-create": "",
"attach-post-deploy": "",
"initial-network": "",
@@ -26,7 +26,11 @@ var (
// GlobalProperties is a map of all valid global network properties
GlobalProperties = map[string]bool{
"initial-network": true,
"bind-all-interfaces": true,
"attach-post-create": true,
"attach-post-deploy": true,
"initial-network": true,
"tld": true,
}
)