We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0791d6e + ce16394 commit 9b57a96Copy full SHA for 9b57a96
pkg/apis/resource/fuzzer/fuzzer.go
@@ -39,6 +39,15 @@ var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
39
}[c.Int31n(2)]
40
}
41
},
42
+ func(r *resource.DeviceSubRequest, c randfill.Continue) {
43
+ c.FillNoCustom(r) // fuzz self without calling this function again
44
+ if r.AllocationMode == "" {
45
+ r.AllocationMode = []resource.DeviceAllocationMode{
46
+ resource.DeviceAllocationModeAll,
47
+ resource.DeviceAllocationModeExactCount,
48
+ }[c.Int31n(2)]
49
+ }
50
+ },
51
func(r *resource.DeviceAllocationConfiguration, c randfill.Continue) {
52
c.FillNoCustom(r)
53
if r.Source == "" {
0 commit comments