mirror of https://github.com/linkerd/linkerd2.git
19 lines
391 B
Go
19 lines
391 B
Go
package healthcheck
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/linkerd/linkerd2/pkg/k8s"
|
|
)
|
|
|
|
// FuzzFetchCurrentConfiguration fuzzes the FetchCurrentConfiguration function.
|
|
func FuzzFetchCurrentConfiguration(data []byte) int {
|
|
clientset, err := k8s.NewFakeAPI(string(data))
|
|
if err != nil {
|
|
return 0
|
|
}
|
|
|
|
_, _, _ = FetchCurrentConfiguration(context.Background(), clientset, "linkerd")
|
|
return 1
|
|
}
|