open-nomad/nomad/state
Luiz Aoqui d5aa72190f
node pools: namespace integration (#17562)
Add structs and fields to support the Nomad Pools Governance Enterprise
feature of controlling node pool access via namespaces.

Nomad Enterprise allows users to specify a default node pool to be used
by jobs that don't specify one. In order to accomplish this, it's
necessary to distinguish between a job that explicitly uses the
`default` node pool and one that did not specify any.

If the `default` node pool is set during job canonicalization it's
impossible to do this, so this commit allows a job to have an empty node
pool value during registration but sets to `default` at the admission
controller mutator.

In order to guarantee state consistency the state store validates that
the job node pool is set and exists before inserting it.
2023-06-16 16:30:22 -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 pools: namespace integration (#17562) 2023-06-16 16:30:22 -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: namespace integration (#17562) 2023-06-16 16:30:22 -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 pools: namespace integration (#17562) 2023-06-16 16:30:22 -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