open-nomad/nomad/state
Luiz Aoqui bc17cffaef
node pool: node pool upsert on multiregion node register (#17503)
When registering a node with a new node pool in a non-authoritative
region we can't create the node pool because this new pool will not be
replicated to other regions.

This commit modifies the node registration logic to only allow automatic
node pool creation in the authoritative region.

In non-authoritative regions, the client is registered, but the node
pool is not created. The client is kept in the `initialing` status until
its node pool is created in the authoritative region and replicated to
the client's region.
2023-06-13 11:28:28 -04:00
..
indexer [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
paginator [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
autopilot.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
autopilot_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
deployment_events_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
events.go node pools: add event stream support (#17412) 2023-06-06 10:14:47 -04:00
events_test.go node pools: add event stream support (#17412) 2023-06-06 10:14:47 -04:00
iterator.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
schema.go node pools: list nodes in pool (#17413) 2023-06-06 10:43:43 -04:00
schema_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_changes.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store.go node pool: node pool upsert on multiregion node register (#17503) 2023-06-13 11:28:28 -04:00
state_store_acl.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_acl_binding_rule.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_acl_binding_rule_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_acl_sso.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_acl_sso_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_acl_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_node_pools.go node pools: add event stream support (#17412) 2023-06-06 10:14:47 -04:00
state_store_node_pools_test.go node pools: add CRUD API (#17384) 2023-06-01 15:55:49 -04:00
state_store_oss.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_restore.go node pool: initial base work (#17163) 2023-05-15 10:49:08 -04:00
state_store_restore_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_service_regisration_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_service_registration.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_test.go node pool: node pool upsert on multiregion node register (#17503) 2023-06-13 11:28:28 -04:00
state_store_variables.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_variables_oss.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_variables_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
testing.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00