fuzzer

package
Version: v1.22.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

Functions

This section is empty.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL