mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Merge branch 'master' of github.com:hashicorp/nomad into release-0.12.0
This commit is contained in:
@@ -632,6 +632,7 @@ func convertClientConfig(agentConfig *Config) (*clientconfig.Config, error) {
|
||||
|
||||
// Setup networking configuration
|
||||
conf.CNIPath = agentConfig.Client.CNIPath
|
||||
conf.CNIConfigDir = agentConfig.Client.CNIConfigDir
|
||||
conf.BridgeNetworkName = agentConfig.Client.BridgeNetworkName
|
||||
conf.BridgeNetworkAllocSubnet = agentConfig.Client.BridgeNetworkSubnet
|
||||
|
||||
|
||||
@@ -277,6 +277,10 @@ type ClientConfig struct {
|
||||
// specified colon delimited
|
||||
CNIPath string `hcl:"cni_path"`
|
||||
|
||||
// CNIConfigDir is the directory where CNI network configuration is located. The
|
||||
// client will use this path when fingerprinting CNI networks.
|
||||
CNIConfigDir string `hcl:"cni_config_dir"`
|
||||
|
||||
// BridgeNetworkName is the name of the bridge to create when using the
|
||||
// bridge network mode
|
||||
BridgeNetworkName string `hcl:"bridge_network_name"`
|
||||
@@ -1535,6 +1539,9 @@ func (a *ClientConfig) Merge(b *ClientConfig) *ClientConfig {
|
||||
if b.CNIPath != "" {
|
||||
result.CNIPath = b.CNIPath
|
||||
}
|
||||
if b.CNIConfigDir != "" {
|
||||
result.CNIConfigDir = b.CNIConfigDir
|
||||
}
|
||||
if b.BridgeNetworkName != "" {
|
||||
result.BridgeNetworkName = b.BridgeNetworkName
|
||||
}
|
||||
|
||||
@@ -195,7 +195,7 @@ func (c *JobPlanCommand) multiregionPlan(client *api.Client, job *api.Job, opts
|
||||
|
||||
for regionName, resp := range plans {
|
||||
c.Ui.Output(c.Colorize().Color(fmt.Sprintf("[bold]Region: %q[reset]", regionName)))
|
||||
regionExitCode := c.outputPlannedJob(job, resp, verbose, diff)
|
||||
regionExitCode := c.outputPlannedJob(job, resp, diff, verbose)
|
||||
if regionExitCode > exitCode {
|
||||
exitCode = regionExitCode
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user