mirror of
https://github.com/Telecominfraproject/wlan-cloud-kube-state-metrics.git
synced 2025-10-29 17:52:22 +00:00
Add FamilyGeneratorFilter interface and use it for the allow- / denylist
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user