open-nomad/nomad
Seth Hoenig 20802da8fd connect: correctly deal with nil sidecar_service task stanza
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
2020-04-09 20:28:17 -06:00
..
deploymentwatcher
drainer avoid logging in draining job watcher 2020-03-30 07:06:53 -04:00
mock state: support snapshot of CSI plugin and volume tables (#7546) 2020-03-30 11:17:16 -04:00
state csi: run volume claim GC on job stop -purge (#7615) 2020-04-03 17:37:26 -04:00
structs connect: correctly deal with nil sidecar_service task stanza 2020-04-09 20:28:17 -06:00
types
acl.go Audit config, seams for enterprise audit features 2020-03-23 13:47:42 -04:00
acl_endpoint.go
acl_endpoint_test.go
acl_test.go Audit config, seams for enterprise audit features 2020-03-23 13:47:42 -04:00
alloc_endpoint.go
alloc_endpoint_test.go
autopilot.go
autopilot_test.go tests: deflake TestAutopilot_RollingUpdate 2020-04-03 17:15:41 -04:00
blocked_evals.go
blocked_evals_system.go
blocked_evals_test.go
client_agent_endpoint.go vendor: explicit use of hashicorp/go-msgpack 2020-03-31 09:45:21 -04:00
client_agent_endpoint_test.go fixup! vendor: explicit use of hashicorp/go-msgpack 2020-03-31 09:48:07 -04:00
client_alloc_endpoint.go fixup! vendor: explicit use of hashicorp/go-msgpack 2020-03-31 09:48:07 -04:00
client_alloc_endpoint_test.go fixup! vendor: explicit use of hashicorp/go-msgpack 2020-03-31 09:48:07 -04:00
client_csi_endpoint.go CSI: move node unmount to server-driven RPCs (#7596) 2020-04-02 16:04:56 -04:00
client_csi_endpoint_test.go CSI: move node unmount to server-driven RPCs (#7596) 2020-04-02 16:04:56 -04:00
client_fs_endpoint.go fixup! vendor: explicit use of hashicorp/go-msgpack 2020-03-31 09:48:07 -04:00
client_fs_endpoint_test.go fixup! vendor: explicit use of hashicorp/go-msgpack 2020-03-31 09:48:07 -04:00
client_rpc.go fixup! vendor: explicit use of hashicorp/go-msgpack 2020-03-31 09:48:07 -04:00
client_rpc_test.go
client_stats_endpoint.go
client_stats_endpoint_test.go
config.go csi: volume claim garbage collection (#7125) 2020-03-23 13:58:30 -04:00
consul.go consul: annotate Consul interfaces with ACLs 2020-03-30 10:17:28 -06:00
consul_policy.go
consul_policy_test.go
consul_test.go
core_sched.go csi: make volume GC in job deregister safely async 2020-04-06 10:15:55 -04:00
core_sched_test.go csi: fix unpublish workflow ID mismatches 2020-04-06 10:15:55 -04:00
csi_endpoint.go CSI: move node unmount to server-driven RPCs (#7596) 2020-04-02 16:04:56 -04:00
csi_endpoint_test.go CSI: move node unmount to server-driven RPCs (#7596) 2020-04-02 16:04:56 -04:00
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 scaling api: more testing around the scaling events api 2020-04-01 16:39:23 +00:00
fsm_not_ent.go
fsm_registry_oss.go fixup! vendor: explicit use of hashicorp/go-msgpack 2020-03-31 09:48:07 -04:00
fsm_test.go
heartbeat.go
heartbeat_test.go
interfaces.go CSI: move node unmount to server-driven RPCs (#7596) 2020-04-02 16:04:56 -04:00
job_endpoint.go e2e/csi: add waiting for alloc stop 2020-04-06 10:15:55 -04:00
job_endpoint_hook_connect.go lint: gofmt 2020-04-01 21:23:47 -04:00
job_endpoint_hook_connect_test.go
job_endpoint_hook_expose_check.go connect: enable automatic expose paths for individual group service checks 2020-03-31 17:15:50 -06:00
job_endpoint_hook_expose_check_test.go connect: enable automatic expose paths for individual group service checks 2020-03-31 17:15:50 -06:00
job_endpoint_hooks.go
job_endpoint_oss.go
job_endpoint_test.go csi: run volume claim GC on job stop -purge (#7615) 2020-04-03 17:37:26 -04:00
leader.go csi: volume claim garbage collection (#7125) 2020-03-23 13:58:30 -04:00
leader_oss.go
leader_test.go
merge.go
node_endpoint.go csi: make volume GC in job deregister safely async 2020-04-06 10:15:55 -04:00
node_endpoint_test.go csi: make volume GC in job deregister safely async 2020-04-06 10:15:55 -04:00
operator_endpoint.go
operator_endpoint_test.go
periodic.go
periodic_endpoint.go
periodic_endpoint_test.go csi: fix index maintenance for CSIVolume and CSIPlugin tables (#7049) 2020-03-23 13:58:29 -04:00
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 fixup! vendor: explicit use of hashicorp/go-msgpack 2020-03-31 09:48:07 -04:00
plan_queue.go
plan_queue_test.go
raft_rpc.go
regions_endpoint.go
regions_endpoint_test.go
rpc.go fixup! vendor: explicit use of hashicorp/go-msgpack 2020-03-31 09:48:07 -04:00
rpc_test.go fixup! vendor: explicit use of hashicorp/go-msgpack 2020-03-31 09:48:07 -04:00
scaling_endpoint.go add acl validation to Scaling.ListPolicies and Scaling.GetPolicy 2020-03-24 14:39:05 +00:00
scaling_endpoint_test.go update RPC scaling endpoint tests to use renamed 'scale' policy disposition 2020-03-24 20:18:12 +00:00
search_endpoint.go csi: CLI for volume status, registration/deregistration and plugin status (#7193) 2020-03-23 13:58:30 -04:00
search_endpoint_oss.go csi: implement volume ACLs (#7339) 2020-03-23 13:59:25 -04:00
search_endpoint_test.go csi: plugin deregistration on plugin job GC (#7502) 2020-03-26 17:07:18 -04:00
serf.go
serf_test.go
server.go CSI: move node unmount to server-driven RPCs (#7596) 2020-04-02 16:04:56 -04:00
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 csi: plugin deregistration on plugin job GC (#7502) 2020-03-26 17:07:18 -04:00
timetable.go vendor: explicit use of hashicorp/go-msgpack 2020-03-31 09:45:21 -04:00
timetable_test.go fixup! vendor: explicit use of hashicorp/go-msgpack 2020-03-31 09:48:07 -04:00
util.go
util_test.go
vault.go
vault_test.go
vault_testing.go
worker.go
worker_test.go