kubernetes: k8s.io/kubernetes/pkg/apis/networking/fuzzer Index | Files

package fuzzer

import "k8s.io/kubernetes/pkg/apis/networking/fuzzer"

Index

Package Files

fuzzer.go

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}
            }
        },
    }
}

Funcs returns the fuzzer functions for the networking api group.

Package fuzzer imports 3 packages (graph) and is imported by 31 packages. Updated 2018-07-14. Refresh now. Tools for package owners.