open-nomad/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
..
docker allow configuration of Docker hostnames in bridge mode (#11173) 2021-09-16 08:13:09 +02:00
exec drivers/exec: pass capabilities through executor RPC 2021-05-17 12:37:40 -06:00
java client/fingerprint/java: improve java version string regex matching 2021-06-15 14:15:01 -05:00
mock Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
qemu qemu: set the number of cores equal to the number of reserved cores if set 2021-04-15 13:32:33 -04:00
rawexec honor task user when execing into raw_exec task (#9439) 2020-11-25 09:34:10 -05:00
shared chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00