open-nomad/nomad
Seth Hoenig 57fc593363 consul/connect: validate group network on expose port injection
In #7800, Nomad would automatically generate a port label for service
checks making use of the expose feature, if the port was not already
set. This change assumed the group network would be correctly defined
(as is checked in a validation hook later). If the group network was
not definied, a panic would occur on job submisssion. This change
re-uses the group network validation helper to make sure the network
is correctly definied before adding ports to it.

Fixes #8875
2020-09-14 10:25:03 -05:00
..
deploymentwatcher
drainer
event
mock
state
structs
types
volumewatcher
acl.go
acl_endpoint.go
acl_endpoint_test.go
acl_test.go
alloc_endpoint.go
alloc_endpoint_test.go
autopilot.go
autopilot_test.go
blocked_evals.go
blocked_evals_system.go
blocked_evals_test.go
client_agent_endpoint.go
client_agent_endpoint_test.go
client_alloc_endpoint.go
client_alloc_endpoint_test.go
client_csi_endpoint.go
client_csi_endpoint_test.go
client_fs_endpoint.go
client_fs_endpoint_test.go
client_rpc.go
client_rpc_test.go
client_stats_endpoint.go
client_stats_endpoint_test.go
config.go
consul.go
consul_policy.go
consul_policy_test.go
consul_test.go
core_sched.go
core_sched_test.go
csi_endpoint.go
csi_endpoint_test.go
deployment_endpoint.go
deployment_endpoint_test.go
deployment_watcher_shims.go
drainer_int_test.go
drainer_shims.go
endpoints_oss.go
eval_broker.go
eval_broker_test.go
eval_endpoint.go
eval_endpoint_test.go
fsm.go
fsm_not_ent.go
fsm_registry_oss.go
fsm_test.go
heartbeat.go
heartbeat_test.go
job_endpoint.go
job_endpoint_hook_connect.go
job_endpoint_hook_connect_test.go
job_endpoint_hook_expose_check.go
job_endpoint_hook_expose_check_test.go
job_endpoint_hooks.go
job_endpoint_oss.go
job_endpoint_test.go
leader.go
leader_oss.go
leader_test.go
merge.go
node_endpoint.go
node_endpoint_test.go
operator_endpoint.go
operator_endpoint_test.go
periodic.go
periodic_endpoint.go
periodic_endpoint_test.go
periodic_test.go
plan_apply.go
plan_apply_not_ent.go
plan_apply_pool.go
plan_apply_pool_test.go
plan_apply_test.go
plan_endpoint.go
plan_endpoint_test.go
plan_normalization_test.go
plan_queue.go
plan_queue_test.go
raft_rpc.go
regions_endpoint.go
regions_endpoint_test.go
rpc.go
rpc_test.go
scaling_endpoint.go
scaling_endpoint_test.go
search_endpoint.go
search_endpoint_oss.go
search_endpoint_test.go
serf.go
serf_test.go
server.go
server_setup_oss.go
server_test.go
stats_fetcher.go
stats_fetcher_test.go
status_endpoint.go
status_endpoint_test.go
system_endpoint.go
system_endpoint_test.go
testing.go
timetable.go
timetable_test.go
util.go
util_test.go
vault.go
vault_test.go
vault_testing.go
worker.go
worker_test.go