20802da8fd
Before, if the sidecar_service stanza of a connect enabled service was missing, the job submission would cause a panic in the nomad agent. Since the panic was happening in the API handler the agent itself continued running, but this change will the condition more gracefully. By fixing the `Copy` method, the API handler now returns the proper error. $ nomad job run foo.nomad Error submitting job: Unexpected response code: 500 (1 error occurred: * Task group api validation failed: 2 errors occurred: * Missing tasks for task group * Task group service validation failed: 1 error occurred: * Service[0] count-api validation failed: 1 error occurred: * Consul Connect must be native or use a sidecar service |
||
---|---|---|
.. | ||
deploymentwatcher | ||
drainer | ||
mock | ||
state | ||
structs | ||
types | ||
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 | ||
interfaces.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 |