Fix apiext.JSON fuzzer

Signed-off-by: James Munnelly <james@munnelly.eu>
This commit is contained in:
James Munnelly 2019-12-03 21:46:56 +00:00
parent fd306c538c
commit 3f212844a7

View File

@ -42,10 +42,9 @@ var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
s.Spec.IssuerRef.Kind = v1alpha2.IssuerKind
}
},
func(s *acme.ACMEIssuerDNS01ProviderWebhook, c fuzz.Continue) {
c.FuzzNoCustom(s) // fuzz self without calling this function again
func(s *apiext.JSON, c fuzz.Continue) {
// ensure the webhook's config is valid JSON
s.Config = &apiext.JSON{Raw: []byte("{}")}
s.Raw = []byte("{}")
},
}
}