open-nomad/nomad
Tim Gross c320c1ba57
CSI: fix struct copying errors (#9239)
The CSIVolume struct "denormalizes" allocations when it's first queried from
the state store. The CSIVolumeByID method on the state store copies the volume
before denormalizing so that we don't end up with unexpected changes. The
copying has some subtle bugs that meant that Allocations (as well as
Topologies and MountOptions) were not getting copied when expected.

Also, ensure we never write allocations attached to volumes to the state store
during claims.
2020-11-18 10:59:25 -05:00
..
deploymentwatcher Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
drainer Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
mock added new policy capabilities for recommendations API 2020-10-28 14:32:16 +00:00
state CSI: fix struct copying errors (#9239) 2020-11-18 10:59:25 -05:00
stream Event sink manager improvements (#9206) 2020-11-02 09:21:32 -05:00
structs CSI: fix struct copying errors (#9239) 2020-11-18 10:59:25 -05:00
types
volumewatcher csi: Postrun hook should not change mode (#9323) 2020-11-11 13:06:30 -05:00
acl.go
acl_endpoint.go
acl_endpoint_test.go
acl_test.go
alloc_endpoint.go updated Allocation.List to properly handle ACL checking for namespace=* 2020-11-05 17:26:33 +00:00
alloc_endpoint_test.go documenting test for #9268 2020-11-05 16:19:55 +00:00
autopilot.go
autopilot_test.go
blocked_evals.go
blocked_evals_system.go
blocked_evals_test.go
client_agent_endpoint.go api: nomad debug new /agent/host (#8325) 2020-07-02 09:51:25 -04:00
client_agent_endpoint_test.go minor tweaks from Ent 2020-07-20 09:25:09 -04:00
client_alloc_endpoint.go
client_alloc_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
client_csi_endpoint.go msgpack-rpc errors cannot be wrapped (#8633) 2020-08-11 10:25:43 -04:00
client_csi_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
client_fs_endpoint.go
client_fs_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
client_rpc.go
client_rpc_test.go
client_stats_endpoint.go
client_stats_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
config.go remove event durability (#9147) 2020-10-22 12:21:03 -04:00
consul.go consul/connect: add initial support for ingress gateways 2020-08-21 16:21:54 -05:00
consul_policy.go
consul_policy_test.go
consul_test.go consul/connect: add initial support for ingress gateways 2020-08-21 16:21:54 -05:00
core_sched.go csi: Postrun hook should not change mode (#9323) 2020-11-11 13:06:30 -05:00
core_sched_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
csi_endpoint.go csi: Postrun hook should not change mode (#9323) 2020-11-11 13:06:30 -05:00
csi_endpoint_test.go CSI: fix struct copying errors (#9239) 2020-11-18 10:59:25 -05:00
deployment_endpoint.go api: add field filters to /v1/{allocations,nodes} 2020-10-14 10:35:22 -07:00
deployment_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
deployment_watcher_shims.go
drainer_int_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
drainer_shims.go
endpoints_oss.go
eval_broker.go
eval_broker_test.go
eval_endpoint.go api: add field filters to /v1/{allocations,nodes} 2020-10-14 10:35:22 -07:00
eval_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
event_endpoint.go Send events to EventSinks (#9171) 2020-10-26 17:27:54 -04:00
event_endpoint_test.go Send events to EventSinks (#9171) 2020-10-26 17:27:54 -04:00
event_sink_manager.go Event sink manager improvements (#9206) 2020-11-02 09:21:32 -05:00
event_sink_manager_test.go Event sink manager improvements (#9206) 2020-11-02 09:21:32 -05:00
fsm.go Send events to EventSinks (#9171) 2020-10-26 17:27:54 -04:00
fsm_not_ent.go
fsm_registry_oss.go
fsm_test.go core: open source namespaces 2020-10-22 15:26:32 -07:00
heartbeat.go
heartbeat_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
job_endpoint.go added new policy capabilities for recommendations API 2020-10-28 14:32:16 +00:00
job_endpoint_hook_connect.go consul/connect: dynamically select envoy sidecar at runtime 2020-10-13 09:14:12 -05:00
job_endpoint_hook_connect_test.go consul/connect: remove envoy dns option from gateway proxy config 2020-08-24 09:11:55 -05:00
job_endpoint_hook_expose_check.go consul/connect: validate group network on expose port injection 2020-09-14 10:25:03 -05:00
job_endpoint_hook_expose_check_test.go consul/connect: validate group network on expose port injection 2020-09-14 10:25:03 -05:00
job_endpoint_hooks.go
job_endpoint_oss.go Allow job Version to start at non-zero value (#9071) 2020-10-12 13:59:48 -04:00
job_endpoint_test.go core: open source namespaces 2020-10-22 15:26:32 -07:00
leader.go Event sink manager improvements (#9206) 2020-11-02 09:21:32 -05:00
leader_oss.go
leader_test.go core: open source namespaces 2020-10-22 15:26:32 -07:00
merge.go
namespace_endpoint.go core: open source namespaces 2020-10-22 15:26:32 -07:00
namespace_endpoint_test.go core: open source namespaces 2020-10-22 15:26:32 -07:00
node_endpoint.go api: add field filters to /v1/{allocations,nodes} 2020-10-14 10:35:22 -07:00
node_endpoint_test.go core: open source namespaces 2020-10-22 15:26:32 -07:00
operator_endpoint.go minor tweaks from Ent 2020-07-20 09:25:09 -04:00
operator_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
periodic.go Atomic eval insertion with job (de-)registration 2020-07-14 11:59:29 -04:00
periodic_endpoint.go dispatch-job capability to dispatch periodic jobs 2020-10-27 16:33:01 -04:00
periodic_endpoint_test.go dispatch-job capability to dispatch periodic jobs 2020-10-27 16:33:01 -04:00
periodic_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
plan_apply.go writetxn can return error, add alloc and job generic events. Add events 2020-10-14 12:44:39 -04:00
plan_apply_not_ent.go
plan_apply_pool.go
plan_apply_pool_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
plan_apply_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
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 Enforce bounds on MaxQueryTime (#9064) 2020-10-15 08:43:06 -04:00
rpc_test.go
scaling_endpoint.go fix #9227: use both job and type query on scaling policy list endpoint 2020-11-10 23:26:35 +00:00
scaling_endpoint_test.go fix #9227: use both job and type query on scaling policy list endpoint 2020-11-10 23:26:35 +00:00
search_endpoint.go core: open source namespaces 2020-10-22 15:26:32 -07:00
search_endpoint_oss.go core: open source namespaces 2020-10-22 15:26:32 -07:00
search_endpoint_test.go core: open source namespaces 2020-10-22 15:26:32 -07:00
serf.go
serf_test.go
server.go Event sink manager improvements (#9206) 2020-11-02 09:21:32 -05:00
server_setup_oss.go oss compoments for multi-vault namespaces 2020-07-24 10:14:59 -04:00
server_test.go
stats_fetcher.go
stats_fetcher_test.go
status_endpoint.go
status_endpoint_test.go
system_endpoint.go
system_endpoint_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
testing.go filter on additional filter keys, remove switch statement duplication 2020-10-14 14:14:33 -04:00
timetable.go
timetable_test.go
util.go csi: client RPCs should return wrapped errors for checking (#8605) 2020-08-07 11:01:36 -04:00
util_test.go
vault.go Merge pull request #8524 from hashicorp/b-vault-health-checks 2020-08-11 16:01:07 -04:00
vault_test.go Merge pull request #8524 from hashicorp/b-vault-health-checks 2020-08-11 16:01:07 -04:00
vault_testing.go on leadership establishment, revoke Vault tokens in background 2020-05-21 07:38:27 -04:00
worker.go
worker_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00