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

package fuzzer

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

Index

Package Files

fuzzer.go

Variables

var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
    return []interface{}{
        func(obj *admissionregistration.Rule, c fuzz.Continue) {
            c.FuzzNoCustom(obj)
            if obj.Scope == nil {
                s := admissionregistration.AllScopes
                obj.Scope = &s
            }
        },
        func(obj *admissionregistration.ValidatingWebhook, c fuzz.Continue) {
            c.FuzzNoCustom(obj)
            p := admissionregistration.FailurePolicyType("Fail")
            obj.FailurePolicy = &p
            m := admissionregistration.MatchPolicyType("Exact")
            obj.MatchPolicy = &m
            s := admissionregistration.SideEffectClassUnknown
            obj.SideEffects = &s
            if obj.TimeoutSeconds == nil {
                i := int32(30)
                obj.TimeoutSeconds = &i
            }
            obj.AdmissionReviewVersions = []string{"v1beta1"}
        },
        func(obj *admissionregistration.MutatingWebhook, c fuzz.Continue) {
            c.FuzzNoCustom(obj)
            p := admissionregistration.FailurePolicyType("Fail")
            obj.FailurePolicy = &p
            m := admissionregistration.MatchPolicyType("Exact")
            obj.MatchPolicy = &m
            s := admissionregistration.SideEffectClassUnknown
            obj.SideEffects = &s
            n := admissionregistration.NeverReinvocationPolicy
            obj.ReinvocationPolicy = &n
            if obj.TimeoutSeconds == nil {
                i := int32(30)
                obj.TimeoutSeconds = &i
            }
            obj.AdmissionReviewVersions = []string{"v1beta1"}
        },
    }
}

Funcs returns the fuzzer functions for the admissionregistration api group.

Package fuzzer imports 3 packages (graph) and is imported by 32 packages. Updated 2019-06-13. Refresh now. Tools for package owners.