d5aa72190f
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. |
||
---|---|---|
.. | ||
indexer | ||
paginator | ||
autopilot.go | ||
autopilot_test.go | ||
deployment_events_test.go | ||
events.go | ||
events_test.go | ||
iterator.go | ||
schema.go | ||
schema_test.go | ||
state_changes.go | ||
state_store.go | ||
state_store_acl.go | ||
state_store_acl_binding_rule.go | ||
state_store_acl_binding_rule_test.go | ||
state_store_acl_sso.go | ||
state_store_acl_sso_test.go | ||
state_store_acl_test.go | ||
state_store_node_pools.go | ||
state_store_node_pools_test.go | ||
state_store_oss.go | ||
state_store_restore.go | ||
state_store_restore_test.go | ||
state_store_service_regisration_test.go | ||
state_store_service_registration.go | ||
state_store_test.go | ||
state_store_variables.go | ||
state_store_variables_oss.go | ||
state_store_variables_test.go | ||
testing.go |