open-consul/agent/consul/state
Michael Wilkerson 40dd8ce65b
Add sameness group field to prepared queries (#17089)
* added method for converting SamenessGroupConfigEntry
- added new method `ToQueryFailoverTargets` for converting a SamenessGroupConfigEntry's members to a list of QueryFailoverTargets
- renamed `ToFailoverTargets` ToServiceResolverFailoverTargets to distinguish it from `ToQueryFailoverTargets`

* Added SamenessGroup to PreparedQuery
- exposed Service.Partition to API when defining a prepared query
- added a method for determining if a QueryFailoverOptions is empty
- This will be useful for validation
- added unit tests

* added method for retrieving a SamenessGroup to state store

* added logic for using PQ with SamenessGroup
- added branching path for SamenessGroup handling in execute. It will be handled separate from the normal PQ case
- added a new interface so that the `GetSamenessGroupFailoverTargets` can be properly tested
- separated the execute logic into a `targetSelector` function so that it can be used for both failover and sameness group PQs
- split OSS only methods into new PQ OSS files
- added validation that `samenessGroup` is an enterprise only feature

* added documentation for PQ SamenessGroup
2023-04-24 13:21:28 -07:00
..
acl.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
acl_events.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
acl_events_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
acl_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
acl_oss_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
acl_schema.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
acl_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
autopilot.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
autopilot_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
catalog.go Include virtual services from discovery chain in intention topology (#16862) 2023-04-21 16:58:13 +00:00
catalog_events.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
catalog_events_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
catalog_events_oss_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
catalog_events_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
catalog_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
catalog_oss_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
catalog_schema.go Add manual virtual IP support to state store (#16815) 2023-04-21 09:19:02 -07:00
catalog_test.go Add manual virtual IP support to state store (#16815) 2023-04-21 09:19:02 -07:00
config_entry.go Fix a bug with disco chain config entry fetching (#17078) 2023-04-21 09:18:32 -04:00
config_entry_events.go * added Sameness Group to proto files (#16998) 2023-04-14 09:24:46 -07:00
config_entry_events_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_exported_services.go [COMPLIANCE] Add Copyright and License Headers (#16854) 2023-04-20 12:40:22 +00:00
config_entry_exported_services_oss.go [COMPLIANCE] Add Copyright and License Headers (#16854) 2023-04-20 12:40:22 +00:00
config_entry_intention.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_intention_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_oss_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_sameness_group.go Add sameness group field to prepared queries (#17089) 2023-04-24 13:21:28 -07:00
config_entry_sameness_group_oss.go Add default resolvers to disco chains based on the default sameness group (#16837) 2023-03-31 14:35:56 -04:00
config_entry_sameness_group_oss_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_schema.go [NET-3091] Update service intentions to support jwt provider references (#17037) 2023-04-19 18:16:39 -04:00
config_entry_test.go Permissive mTLS (#17035) 2023-04-19 14:45:00 -05:00
connect_ca.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
connect_ca_events.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
connect_ca_events_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
connect_ca_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
coordinate.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
coordinate_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
coordinate_oss_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
coordinate_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
delay_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
delay_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
events.go * added Sameness Group to proto files (#16998) 2023-04-14 09:24:46 -07:00
events_test.go * added Sameness Group to proto files (#16998) 2023-04-14 09:24:46 -07:00
federation_state.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
graveyard.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
graveyard_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
graveyard_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
index_connect_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
indexer.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
intention.go Fix virtual services being included in intention topology as downstreams. (#17099) 2023-04-24 12:03:26 -05:00
intention_oss.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
intention_test.go Include virtual services from discovery chain in intention topology (#16862) 2023-04-21 16:58:13 +00:00
kvs.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
kvs_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
kvs_oss_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
kvs_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
memdb.go * added Sameness Group to proto files (#16998) 2023-04-14 09:24:46 -07:00
memdb_test.go [COMPLIANCE] Add Copyright and License Headers (#16854) 2023-04-20 12:40:22 +00:00
mock_publishFuncType.go Memdb Txn Commit race condition fix (#16871) 2023-04-12 13:18:01 -04:00
operations_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
peering.go Add sameness-group to exported-services config entries (#16836) 2023-03-31 12:36:44 -05:00
peering_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
peering_oss_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
peering_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
prepared_query.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
prepared_query_index.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
prepared_query_index_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
prepared_query_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
query.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
query_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
schema.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
schema_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
schema_oss_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
schema_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
session.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
session_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
session_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
state_store.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
state_store_oss_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
state_store_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
store_integration_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
system_metadata.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
system_metadata_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
tombstone_gc.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
tombstone_gc_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
txn.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
txn_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
usage.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
usage_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
usage_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00