open-nomad/plugins/drivers
James Rasell 0e926ef3fd
allow configuration of Docker hostnames in bridge mode (#11173)
Add a new hostname string parameter to the network block which
allows operators to specify the hostname of the network namespace.
Changing this causes a destructive update to the allocation and it
is omitted if empty from API responses. This parameter also supports
interpolation.

In order to have a hostname passed as a configuration param when
creating an allocation network, the CreateNetwork func of the
DriverNetworkManager interface needs to be updated. In order to
minimize the disruption of future changes, rather than add another
string func arg, the function now accepts a request struct along with
the allocID param. The struct has the hostname as a field.

The in-tree implementations of DriverNetworkManager.CreateNetwork
have been modified to account for the function signature change.
In updating for the change, the enhancement of adding hostnames to
network namespaces has also been added to the Docker driver, whilst
the default Linux manager does not current implement it.
2021-09-16 08:13:09 +02:00
..
proto allow configuration of Docker hostnames in bridge mode (#11173) 2021-09-16 08:13:09 +02:00
testutils allow configuration of Docker hostnames in bridge mode (#11173) 2021-09-16 08:13:09 +02:00
utils Remove some dead code 2019-01-08 09:11:48 -05:00
client.go core: propagate remote task handles 2021-04-27 15:07:03 -07:00
cstructs.go drivers: re-export ResourceUsage structs 2019-01-08 09:11:47 -05:00
driver.go allow configuration of Docker hostnames in bridge mode (#11173) 2021-09-16 08:13:09 +02:00
errors.go Standardize driver health description messages for all drivers 2019-01-06 22:06:38 -06:00
execstreaming.go implemment streaming exec handling in driver grpc handlers 2019-05-09 16:49:08 -04:00
plugin.go drivers: pass logger through driver plugin client 2019-01-25 09:38:41 -05:00
server.go allow configuration of Docker hostnames in bridge mode (#11173) 2021-09-16 08:13:09 +02:00
task_handle.go core: propagate remote task handles 2021-04-27 15:07:03 -07:00
utils.go allow configuration of Docker hostnames in bridge mode (#11173) 2021-09-16 08:13:09 +02:00
utils_test.go allow configuration of Docker hostnames in bridge mode (#11173) 2021-09-16 08:13:09 +02:00
versions.go Add plugin API versioning to plugin loader and plugins 2018-12-18 16:48:00 -08:00