open-nomad/scheduler
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
..
annotate.go scheduler: label loops with nested switch statements for effective break (#8528) 2020-07-24 08:50:41 -04:00
annotate_test.go Deprecate IOPS 2018-12-06 15:09:26 -08:00
context.go scheduler: fix panic when preempting and evicting 2019-12-02 20:22:22 -08:00
context_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
device.go Change types of weights on spread/affinity 2019-01-30 12:20:38 -08:00
device_test.go Change types of weights on spread/affinity 2019-01-30 12:20:38 -08:00
feasible.go add support for host network interpolation 2021-04-13 09:53:05 -04:00
feasible_test.go add support for host network interpolation 2021-04-13 09:53:05 -04:00
generic_sched.go core: implement system batch scheduler 2021-08-03 10:30:47 -04:00
generic_sched_test.go scheduler: datacenter updates should be destructive 2021-07-07 11:18:30 -04:00
preemption.go Only preempt for network when there is a network 2019-06-07 18:55:55 -04:00
preemption_test.go Allow configuring memory oversubscription (#10466) 2021-04-29 22:09:56 -04:00
propertyset.go server 2018-09-15 16:23:13 -07:00
rank.go chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00
rank_test.go Allow configuring memory oversubscription (#10466) 2021-04-29 22:09:56 -04:00
reconcile.go core: propagate remote task handles 2021-04-27 15:07:03 -07:00
reconcile_test.go scheduler: test for reconciler's in-place rollback behavior 2021-06-03 10:02:19 -04:00
reconcile_util.go core: propagate remote task handles 2021-04-27 15:07:03 -07:00
reconcile_util_test.go removed deprecated fields from Drain structs and API 2021-03-21 15:30:11 +00:00
scheduler.go core: implement system batch scheduler 2021-08-03 10:30:47 -04:00
scheduler_oss.go include pro tag in serveral oss.go files 2020-02-10 15:56:14 -05:00
scheduler_sysbatch_test.go test: use Len instead of Equal on system and sysbatch node constraint tests 2021-09-02 11:36:02 -04:00
scheduler_system.go scheduler: deep copy AllocMetric 2021-09-10 16:41:31 -07:00
scheduler_system_test.go test: use Len instead of Equal on system and sysbatch node constraint tests 2021-09-02 11:36:02 -04:00
select.go chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00
select_test.go Implement affinity support in generic scheduler 2018-09-04 16:10:11 -05:00
spread.go More error->debug for logging in the bin packing iterator 2019-12-12 15:50:16 -06:00
spread_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
stack.go core: implement system batch scheduler 2021-08-03 10:30:47 -04:00
stack_not_ent.go sync 2017-10-13 14:36:02 -07:00
stack_test.go core: implement system batch scheduler 2021-08-03 10:30:47 -04:00
testing.go tests: use standard library testing.TB 2021-06-09 16:18:45 -07:00
util.go allow configuration of Docker hostnames in bridge mode (#11173) 2021-09-16 08:13:09 +02:00
util_test.go allow configuration of Docker hostnames in bridge mode (#11173) 2021-09-16 08:13:09 +02:00