storj/satellite/nodeselection
Márton Elek 84ea80c1fd satellite/repair/checker: respect autoExcludeSubnet anntation in checker rangedloop
This patch is a oneliner: rangedloop checker should check the subnets only if it's not turned off with placement annotation.
(see in satellite/repair/checker/observer.go).

But I didn't find any unit test to cover that part, so I had to write one, and I prefered to write it as a unit test not an integration test, which requires a mock repair queue (observer_unit_test.go mock.go).

Because it's small change, I also included a small change: creating a elper method to check if AutoExcludeSubnet annotation is defined

Change-Id: I2666b937074ab57f603b356408ef108cd55bd6fd
2023-08-23 13:45:09 +00:00
..
gen satellite/nodeselection: SelectBySubnet should use placement filters for all nodes 2023-08-04 10:48:15 +02:00
common.go satellite: move satellite/nodeselection/uploadselection => satellite/nodeselection 2023-07-07 10:32:03 +02:00
filter_test.go satellite/nodeselection: remove AutoExcludeSubnet filter 2023-08-18 08:31:00 +00:00
filter.go satellite/nodeselection: remove AutoExcludeSubnet filter 2023-08-18 08:31:00 +00:00
node.go satellite/nodeselection: expand SelectedNode 2023-08-07 12:44:49 +00:00
primes.go satellite/nodeselection: SelectBySubnet should use placement filters for all nodes 2023-08-04 10:48:15 +02:00
rand_test.go satellite/nodeselection: SelectBySubnet should use placement filters for all nodes 2023-08-04 10:48:15 +02:00
rand.go satellite/nodeselection: SelectBySubnet should use placement filters for all nodes 2023-08-04 10:48:15 +02:00
region.go satellite/overlay/placement: improve placement configurability with &&, placement, region and ! support in country 2023-08-17 16:12:53 +00:00
selector_test.go satellite/nodeselection: remove AutoExcludeSubnet filter 2023-08-18 08:31:00 +00:00
selector.go satellite/nodeselection: SelectBySubnet should use placement filters for all nodes 2023-08-04 10:48:15 +02:00
state_test.go satellite/nodeselection: remove stats/size from nodeselection state 2023-08-01 18:29:41 +00:00
state.go satellite/repair/checker: respect autoExcludeSubnet anntation in checker rangedloop 2023-08-23 13:45:09 +00:00