add e2e tests for v1 config (#3608)

This commit is contained in:
fatedier authored and GitHub committed 2023-09-13 16:32:39 +08:00
1 parent c95311d1a0
commit 7cd02f5bd8
61 files changed
+3697 -159

No files matched your search

+3
View File
@@ -32,6 +32,9 @@ var creators = make(map[string]CreatorFn)
type CreatorFn func(options v1.ClientPluginOptions) (Plugin, error)
func Register(name string, fn CreatorFn) {
if _, exist := creators[name]; exist {
panic(fmt.Sprintf("plugin [%s] is already registered", name))
}
creators[name] = fn
}