fuzzer

package
v0.0.0-...-5756e46 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
	return []interface{}{

		func(s *controller.ControllerConfiguration, c fuzz.Continue) {
			c.FuzzNoCustom(s)

			if s.ClusterResourceNamespace == "" {
				s.ClusterResourceNamespace = "test-roundtrip"
			}

			if len(s.Controllers) == 0 {
				s.Controllers = []string{"test-roundtrip"}
			}

			if len(s.CopiedAnnotationPrefixes) == 0 {
				s.CopiedAnnotationPrefixes = []string{"test-roundtrip"}
			}

			if s.MetricsListenAddress == "" {
				s.MetricsListenAddress = "test-roundtrip"
			}

			if s.HealthzListenAddress == "" {
				s.HealthzListenAddress = "test-roundtrip"
			}

			if s.PprofAddress == "" {
				s.PprofAddress = "test-roundtrip"
			}

			logsapi.SetRecommendedLoggingConfiguration(&s.Logging)

			if s.LeaderElectionConfig.Namespace == "" {
				s.LeaderElectionConfig.Namespace = "test-roundtrip"
			}

			if s.LeaderElectionConfig.LeaseDuration == time.Duration(0) {
				s.LeaderElectionConfig.LeaseDuration = time.Second * 8875
			}

			if s.LeaderElectionConfig.RenewDeadline == time.Duration(0) {
				s.LeaderElectionConfig.RenewDeadline = time.Second * 8875
			}

			if s.LeaderElectionConfig.RetryPeriod == time.Duration(0) {
				s.LeaderElectionConfig.RetryPeriod = time.Second * 8875
			}

			if s.LeaderElectionConfig.HealthzTimeout == time.Duration(0) {
				s.LeaderElectionConfig.HealthzTimeout = time.Second * 8875
			}

			if s.IngressShimConfig.DefaultIssuerKind == "" {
				s.IngressShimConfig.DefaultIssuerKind = "test-roundtrip"
			}

			if s.IngressShimConfig.DefaultIssuerGroup == "" {
				s.IngressShimConfig.DefaultIssuerGroup = "test-roundtrip"
			}

			if len(s.IngressShimConfig.DefaultAutoCertificateAnnotations) == 0 {
				s.IngressShimConfig.DefaultAutoCertificateAnnotations = []string{"test-roundtrip"}
			}

			if s.ACMEHTTP01Config.SolverImage == "" {
				s.ACMEHTTP01Config.SolverImage = "test-roundtrip"
			}

			if s.ACMEHTTP01Config.SolverResourceRequestCPU == "" {
				s.ACMEHTTP01Config.SolverResourceRequestCPU = "test-roundtrip"
			}

			if s.ACMEHTTP01Config.SolverResourceRequestMemory == "" {
				s.ACMEHTTP01Config.SolverResourceRequestMemory = "test-roundtrip"
			}

			if s.ACMEHTTP01Config.SolverResourceLimitsCPU == "" {
				s.ACMEHTTP01Config.SolverResourceLimitsCPU = "test-roundtrip"
			}

			if s.ACMEHTTP01Config.SolverResourceLimitsMemory == "" {
				s.ACMEHTTP01Config.SolverResourceLimitsMemory = "test-roundtrip"
			}

			if s.ACMEDNS01Config.CheckRetryPeriod == time.Duration(0) {
				s.ACMEDNS01Config.CheckRetryPeriod = time.Second * 8875
			}
		},
	}
}

Funcs returns the fuzzer functions for the controller config api group.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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