open-nomad/nomad/state
Isabel Suchanek ab51050ce8
events: fix wildcard namespace handling (#10935)
This fixes a bug in the event stream API where it currently interprets
namespace=* as an actual namespace, not a wildcard. When Nomad parses
incoming requests, it sets namespace to default if not specified, which
means the request namespace will never be an empty string, which is what
the event subscription was checking for. This changes the conditional
logic to check for a wildcard namespace instead of an empty one.

It also updates some event tests to include the default namespace in the
subscription to match current behavior.

Fixes #10903
2021-09-02 09:36:55 -07:00
..
autopilot.go remove node events for state track changing pr 2020-09-04 10:23:35 -04:00
autopilot_test.go implement MinQuorum 2020-02-16 16:04:59 -06:00
deployment_events_test.go events: fix wildcard namespace handling (#10935) 2021-09-02 09:36:55 -07:00
events.go restored Node.Sanitize() for RPC endpoints 2021-03-26 17:03:15 +00:00
events_test.go Node Drain Metadata (#10250) 2021-05-07 13:58:40 -04:00
iterator.go csi: use node MaxVolumes during scheduling (#7565) 2020-03-31 17:16:47 -04:00
schema.go core: implement system batch scheduler 2021-08-03 10:30:47 -04:00
schema_test.go remove event durability (#9147) 2020-10-22 12:21:03 -04:00
state_changes.go events: Use single eventsFromChanges func (#9281) 2020-11-05 13:06:52 -08:00
state_store.go chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00
state_store_oss.go added new policy capabilities for recommendations API 2020-10-28 14:32:16 +00:00
state_store_test.go Node Drain Metadata (#10250) 2021-05-07 13:58:40 -04:00
testing.go tests: use standard library testing.TB 2021-06-09 16:18:45 -07:00