open-nomad/jobspec
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
..
test-fixtures allow configuration of Docker hostnames in bridge mode (#11173) 2021-09-16 08:13:09 +02:00
helper.go Isolate the jobspec package from the rest of Nomad (#8815) 2020-09-03 06:34:04 -05:00
helper_test.go Isolate the jobspec package from the rest of Nomad (#8815) 2020-09-03 06:34:04 -05:00
parse.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
parse_group.go added new policy capabilities for recommendations API 2020-10-28 14:32:16 +00:00
parse_job.go Isolate the jobspec package from the rest of Nomad (#8815) 2020-09-03 06:34:04 -05:00
parse_multiregion.go Isolate the jobspec package from the rest of Nomad (#8815) 2020-09-03 06:34:04 -05:00
parse_network.go allow configuration of Docker hostnames in bridge mode (#11173) 2021-09-16 08:13:09 +02:00
parse_service.go support gateway mesh 2021-07-22 17:10:59 -04:00
parse_task.go hcl: add new cores resources field 2021-07-26 11:45:10 -04:00
parse_test.go hcl: add new cores resources field 2021-07-26 11:45:10 -04:00
utils.go consul: add Connect structs 2019-08-06 08:15:07 -07:00
utils_test.go consul: add Connect structs 2019-08-06 08:15:07 -07:00