kgen

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyToInitAndFuzz added in v1.5.0

func CopyToInitAndFuzz(spec *v1.PodSpec)

func FuzzContainerSecurityContext added in v1.5.0

func FuzzContainerSecurityContext(sc **v1.SecurityContext)

FuzzContainerSecurityContext will override the SecurityContext with random (valid) values

func FuzzPodSecurityContext added in v1.5.0

func FuzzPodSecurityContext(sc **v1.PodSecurityContext)

func Generate

func Generate(opts GenerateOpts) *v1.Pod

Types

type GenerateOpts

type GenerateOpts struct {
	Name        string
	Image       string
	Namespace   string
	Command     []string
	Privileged  bool
	HostPath    bool
	HostPid     bool
	HostNetwork bool
	Tolerations bool
}

Jump to

Keyboard shortcuts

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