Add FamilyGeneratorFilter interface and use it for the allow- / denylist

This commit is contained in:
Julian van den Berkmortel
2021-11-15 23:13:16 +01:00
parent e859b280fc
commit d767e99c98
9 changed files with 85 additions and 55 deletions

View File

@@ -40,7 +40,8 @@ var (
// This test case ensures we don't break compatibility for external consumers.
func TestBuilderWithCustomStore(t *testing.T) {
b := builder.NewBuilder()
b.WithAllowDenyList(&allowdenylist.AllowDenyList{})
// TODO: replace with a generic family generator filter which composes both the AllowDenyList and OptInList
b.WithFamilyGeneratorFilter(&allowdenylist.AllowDenyList{})
b.WithEnabledResources([]string{"pods"})
b.WithGenerateStoresFunc(customStore)