1 package healthcheck 2 3 import ( 4 "context" 5 6 "github.com/linkerd/linkerd2/pkg/k8s" 7 ) 8 9 // FuzzFetchCurrentConfiguration fuzzes the FetchCurrentConfiguration function. 10 func FuzzFetchCurrentConfiguration(data []byte) int { 11 clientset, err := k8s.NewFakeAPI(string(data)) 12 if err != nil { 13 return 0 14 } 15 16 _, _, _ = FetchCurrentConfiguration(context.Background(), clientset, "linkerd") 17 return 1 18 } 19