engine: Refactor LocalOverrideStorage #25

Merged
fyrchik merged 2 commits from aarifullin/policy-engine:feature/revise_local_override_storage_iface into master 2023-12-05 09:21:00 +00:00

2 commits

Author SHA1 Message Date
aarifullin
e78ae34bbd [#25] engine: Refactor ChainRouter interface
All checks were successful
Tests and linters / Tests (1.21) (pull_request) Successful in 54s
DCO action / DCO (pull_request) Successful in 1m10s
Tests and linters / Tests (1.20) (pull_request) Successful in 1m5s
Tests and linters / Tests with -race (pull_request) Successful in 1m17s
Tests and linters / Staticcheck (pull_request) Successful in 1m17s
Tests and linters / Lint (pull_request) Successful in 2m3s
* Pass RequestTarget instead only namespace
* Refactor unit-tests and dependencies

Signed-off-by: Airat Arifullin <aarifullin@yadro.com>
2023-12-04 14:15:10 +03:00
aarifullin
ea4d41a973 [#25] engine: Refactor LocalOverrideStorage
All checks were successful
DCO action / DCO (pull_request) Successful in 1m41s
Tests and linters / Tests (1.21) (pull_request) Successful in 1m29s
Tests and linters / Tests (1.20) (pull_request) Successful in 1m46s
Tests and linters / Staticcheck (pull_request) Successful in 1m35s
Tests and linters / Tests with -race (pull_request) Successful in 1m59s
Tests and linters / Lint (pull_request) Successful in 3m2s
* Make LocalOverrideStorage methods to receive Target type
  instead resource
* Refactor unit-tests and dependencies
* Make default chain router check local overrides not
  only for container but also for namespaces

Signed-off-by: Airat Arifullin <aarifullin@yadro.com>
2023-12-01 16:11:45 +03:00