package fuzzer
import "k8s.io/kubernetes/pkg/apis/networking/fuzzer"
Index ¶
Variables ¶
var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} { return []interface{}{ func(np *networking.NetworkPolicyPeer, c fuzz.Continue) { c.FuzzNoCustom(np) if np.IPBlock != nil { np.IPBlock = &networking.IPBlock{ CIDR: "192.168.1.0/24", Except: []string{"192.168.1.1/24", "192.168.1.2/24"}, } } }, func(np *networking.NetworkPolicy, c fuzz.Continue) { c.FuzzNoCustom(np) if len(np.Spec.PolicyTypes) == 0 { np.Spec.PolicyTypes = []networking.PolicyType{networking.PolicyTypeIngress} } }, func(path *networking.HTTPIngressPath, c fuzz.Continue) { c.FuzzNoCustom(path) pathTypes := []networking.PathType{networking.PathTypeExact, networking.PathTypePrefix, networking.PathTypeImplementationSpecific} path.PathType = &pathTypes[c.Rand.Intn(len(pathTypes))] }, } }
Funcs returns the fuzzer functions for the networking api group.
Source Files ¶
fuzzer.go
- Version
- v1.19.0-beta.0
- Published
- May 19, 2020
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 7 minutes ago –
Tools for package owners.